Files
clang-p2996/lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugArangeSet.cpp
Luke Drummond 0fa3320931 [lldb] reject .debug_arange sections with nonzero segment size
If a producer emits a nonzero segment size, `lldb` will silently read
incorrect values and crash, or do something worse later as the tuple
size is expected to be 2, rather than 3.

Neither LLVM, nor GCC produce segmented aranges, but this dangerous case
should still be checked and handled.

Reviewed by: clayborg, labath
Differential Revision: https://reviews.llvm.org/D75925
Subscribers: lldb-commits
Tags: #lldb
2020-03-12 12:22:50 +00:00

5.4 KiB