Skip to content

Add missing checks for nullptr. #71623

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
Feb 15, 2024
Merged

Conversation

adrian-prantl
Copy link
Contributor

We got crash reports from LLDB where protocolList is a nullptr when demangling a symbolic reference. While we're also investigating the root cause of the issue, the code in MetadataReader should also not just crash with such input.

rdar://122698966

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves #NNNNN, fix apple/llvm-project#MMMMM.

@adrian-prantl
Copy link
Contributor Author

@swift-ci test

We got crash reports from LLDB where protocolList is a nullptr when demangling a
symbolic reference. While we're also investigating the root cause of the issue,
the code in MetadataReader should also not just crash with such input.

rdar://122698966
@adrian-prantl
Copy link
Contributor Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 9780246 into swiftlang:main Feb 15, 2024
@mikeash
Copy link
Contributor

mikeash commented Feb 15, 2024

LGTM. Really makes you miss Swift's optional chaining.

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