DWARFVerifier: Verify CU/TU index overlap issues
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 5 May 2022 18:09:34 +0000 (18:09 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 5 May 2022 18:18:53 +0000 (18:18 +0000)
commit0d8cb8b399adcd17e8bf17be7814d030308c8b82
treecf0241101225d50e9185cc50a87c04bca69c3335
parent18fd09ab64b07c45d0373307e37f7c96b3984183
DWARFVerifier: Verify CU/TU index overlap issues

Discovered in a large object that would need a 64 bit index (but the
cu/tu index format doesn't include a 64 bit offset/length mode in
DWARF64 - a spec bug) but instead binutils dwp overflowed the offsets
causing overlapping regions.
llvm/include/llvm/DebugInfo/DWARF/DWARFUnitIndex.h
llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h
llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
llvm/test/DebugInfo/X86/debug-cu-index-overlap.s [new file with mode: 0644]