[all-commits] [llvm/llvm-project] 0fa332: [lldb] reject `.debug_arange` sections with nonzer...
ldrumm via All-commits
all-commits at lists.llvm.org
Thu Mar 12 05:23:17 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0fa3320931e93d658f68c1f19eb45b922158b61e
https://github.com/llvm/llvm-project/commit/0fa3320931e93d658f68c1f19eb45b922158b61e
Author: Luke Drummond <luke.drummond at codeplay.com>
Date: 2020-03-12 (Thu, 12 Mar 2020)
Changed paths:
M lldb/source/Plugins/SymbolFile/DWARF/DWARFDebugArangeSet.cpp
M lldb/unittests/SymbolFile/DWARF/SymbolFileDWARFTests.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list