Skip to content

Cp/r136659551 dont crash on malformed corefile #9344

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

Conversation

jasonmolenda
Copy link

No description provided.

Results in an assert at runtime, when run on an improperly formed
corefile.

rdar://136659551
(cherry picked from commit 3d04695)
lldb scans the corefile for dyld, the dynamic loader, and when it
finds a mach-o header that looks like dyld, it tries to read all
of the load commands and symbol table out of the corefile memory.
If the load comamnds and symbol table are absent or malformed,
it doesn't handle this case and can crash.  Back out when we
fail to create a Module from the dyld binary.

rdar://136659551
(cherry picked from commit 0f98497)
@jasonmolenda jasonmolenda merged commit 9400302 into swiftlang:stable/20240723 Sep 26, 2024
@jasonmolenda jasonmolenda deleted the cp/r136659551-dont-crash-on-malformed-corefile branch September 26, 2024 21: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