[all-commits] [llvm/llvm-project] 9ceb19: [llvm-dwarfdump] Avoid crashing if an abbreviation...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Wed Aug 12 02:02:48 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ceb192e14164ecf8a6f714a770c89765327c722
      https://github.com/llvm/llvm-project/commit/9ceb192e14164ecf8a6f714a770c89765327c722
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2020-08-12 (Wed, 12 Aug 2020)

  Changed paths:
    M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
    M llvm/lib/DebugInfo/DWARF/DWARFCompileUnit.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
    M llvm/lib/DebugInfo/DWARF/DWARFTypeUnit.cpp
    A llvm/test/tools/llvm-dwarfdump/X86/invalid_abbrev_offset.s

  Log Message:
  -----------
  [llvm-dwarfdump] Avoid crashing if an abbreviation offset is invalid.

Note that DWARFUnit::getAbbreviations() returns nullptr if the
abbreviations could not be read, but callers used the returned
pointer without checking.

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




More information about the All-commits mailing list