[all-commits] [llvm/llvm-project] cc6128: [DebugInfo] Avoid crashing on an invalid section i...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Wed Mar 4 19:56:29 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cc61283bf6c4cb88d23c6cbdb58b8c7481709b7e
      https://github.com/llvm/llvm-project/commit/cc61283bf6c4cb88d23c6cbdb58b8c7481709b7e
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2020-03-05 (Thu, 05 Mar 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFUnitIndex.cpp
    A llvm/test/DebugInfo/X86/debug-cu-index-unknown-section.s

  Log Message:
  -----------
  [DebugInfo] Avoid crashing on an invalid section identifier.

A DWARFSectionKind is read from input. It is not validated on parsing,
so an unexpected value may result in reaching llvm_unreachable() in
DWARFUnitIndex::getColumnHeader() when dumping the index section.

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




More information about the All-commits mailing list