[all-commits] [llvm/llvm-project] 95fad4: [DebugInfo] Avoid an infinite loop with a truncate...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Thu Aug 13 23:14:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 95fad44e34c3c20263961a715571d798d90921f6
      https://github.com/llvm/llvm-project/commit/95fad44e34c3c20263961a715571d798d90921f6
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2020-08-14 (Fri, 14 Aug 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
    A llvm/test/DebugInfo/X86/dwarfdump-str-offsets-v4-invalid.s

  Log Message:
  -----------
  [DebugInfo] Avoid an infinite loop with a truncated pre-v5 .debug_str_offsets.dwo.

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

Differential Revision: https://reviews.llvm.org/D85739




More information about the All-commits mailing list