[all-commits] [llvm/llvm-project] 0f9849: [lldb] [Mach-O corefiles] Sanity check malformed dyld
Jason Molenda via All-commits
all-commits at lists.llvm.org
Wed Sep 25 21:52:03 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0f984976897857a8f4003063be6fa38a733fa624
https://github.com/llvm/llvm-project/commit/0f984976897857a8f4003063be6fa38a733fa624
Author: Jason Molenda <jmolenda at apple.com>
Date: 2024-09-25 (Wed, 25 Sep 2024)
Changed paths:
M lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.cpp
M lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderDarwin.h
M lldb/source/Plugins/DynamicLoader/MacOSX-DYLD/DynamicLoaderMacOSXDYLD.cpp
Log Message:
-----------
[lldb] [Mach-O corefiles] Sanity check malformed dyld
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
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list