Skip to content

[Demangler] Null-check a pointer before using it in arithmetic #34321

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 15, 2020

Conversation

vedantk
Copy link
Contributor

@vedantk vedantk commented Oct 15, 2020

This addresses a UBSan -fsanitize=null diagnostic seen when compiling
the stdlib:

runtime error: applying non-zero offset 128 to null pointer

This addresses a UBSan -fsanitize=null diagnostic seen when compiling
the stdlib:

runtime error: applying non-zero offset 128 to null pointer
@vedantk
Copy link
Contributor Author

vedantk commented Oct 15, 2020

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit cab7f94 into swiftlang:main Oct 15, 2020
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