Skip to content

Demangler: don’t crash if demangling a malformed KeyPath[GS]etterThunkHelper #9878

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
May 23, 2017

Conversation

eeckstein
Copy link
Contributor

Explanation: The demangler crashes when it tries to demangle certain types of non-swift symbols.

Scope: This problem can cause a crash in tools which use the demangler and try to demangle symbols which are not necessarily swift symbols.

Radar: rdar://problem/32333373

Risk: Low. It's just an additional null-pointer check.

Testing: There is a test for swift-ci

@jckarter
Copy link
Contributor

Looks good, thanks!

@eeckstein
Copy link
Contributor Author

@swift-ci Please test

@tkremenek tkremenek self-assigned this May 23, 2017
@tkremenek tkremenek merged commit 2d85fb3 into swiftlang:swift-4.0-branch May 23, 2017
@eeckstein eeckstein deleted the fix-demangler-4.0 branch May 23, 2017 23:00
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.

3 participants