[PATCH] D85739: [DebugInfo] Avoid falling in an infinite loop with a truncated .debug_str_offsets.dwo.

Igor Kudrin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 08:40:55 PDT 2020


ikudrin created this revision.
ikudrin added reviewers: dblaikie, jhenderson, aprantl.
ikudrin added projects: LLVM, debug-info.
Herald added a subscriber: hiraditya.
ikudrin requested review of this revision.

`dumpStringOffsetsSection()` expects the size of a contribution to be correctly aligned. The patch adds the corresponding verifications for pre-v5 cases.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D85739

Files:
  llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-dwo-invalid.s
  llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-dwp-invalid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85739.284761.patch
Type: text/x-patch
Size: 4358 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/c5cc0770/attachment.bin>


More information about the llvm-commits mailing list