Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a crash when searching instructions after extension are re-generated #7377

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

4ian
Copy link
Owner

@4ian 4ian commented Feb 6, 2025

Fix risk of crash because reading ObjectMetadata or BehaviorMetadata that are C++ objects that could have been destroyed if extensions have finished being re-generated in the meantime.
Instead, store needed information only when the instructions are enumerated, so we don't risk accessing invalid C++ objects when a search is done.

Also update separator when showing results in UI:
image
image

@4ian 4ian force-pushed the fix/crash-changed-metadata branch 3 times, most recently from 5423d7c to bd1646e Compare February 6, 2025 16:20
@4ian 4ian force-pushed the fix/crash-changed-metadata branch from bd1646e to 890dc22 Compare February 6, 2025 16:48
@4ian 4ian force-pushed the fix/crash-changed-metadata branch from 5dc4db0 to 63f94b9 Compare February 7, 2025 14:51
@4ian 4ian merged commit 47d0fba into master Feb 7, 2025
5 of 6 checks passed
@Bouh Bouh deleted the fix/crash-changed-metadata branch February 7, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants