Skip to content

[lldb] Fix nullptr dereference in AppleObjCRuntimeV2 #3445

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

Merged
merged 1 commit into from
Oct 23, 2021

Conversation

JDevlieghere
Copy link

Fix a potential nullptr dereference in AppleObjCRuntimeV2 by checking
the result of GetClassInfoUtilityFunction and returning a failure if
it's null.

The DynamicClassInfoExtractor was already doign the right thing, but the
SharedCacheClassInfoExtractor was missing this check.

(cherry picked from commit 957a5e9)

Fix a potential nullptr dereference in AppleObjCRuntimeV2 by checking
the result of GetClassInfoUtilityFunction and returning a failure if
it's null.

The DynamicClassInfoExtractor was already doign the right thing, but the
SharedCacheClassInfoExtractor was missing this check.

(cherry picked from commit 957a5e9)
@JDevlieghere
Copy link
Author

@swift-ci please test

@JDevlieghere
Copy link
Author

@swift-ci please test macos platform

4 similar comments
@JDevlieghere
Copy link
Author

@swift-ci please test macos platform

@JDevlieghere
Copy link
Author

@swift-ci please test macos platform

@JDevlieghere
Copy link
Author

@swift-ci please test macos platform

@JDevlieghere
Copy link
Author

@swift-ci please test macos platform

@JDevlieghere JDevlieghere merged commit ec3ee55 into stable/20210726 Oct 23, 2021
@JDevlieghere JDevlieghere deleted the 🍒/FBI/957a5e987444 branch October 23, 2021 06:40
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.

1 participant