[all-commits] [llvm/llvm-project] 577757: [DebugInfo] Check for errors when reading data for...

James Henderson via All-commits all-commits at lists.llvm.org
Tue Jun 9 01:57:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5777570d24027fe23bbb5ab32d8481c360b983d7
      https://github.com/llvm/llvm-project/commit/5777570d24027fe23bbb5ab32d8481c360b983d7
  Author: James Henderson <james.henderson at sony.com>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
    M llvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

  Log Message:
  -----------
  [DebugInfo] Check for errors when reading data for extended opcode

Previously, if an extended opcode was truncated, it would manifest as an
"unexpected line op length error" which wasn't quite accurate. This
change checks for errors any time data is read whilst parsing an
extended opcode, and reports any errors detected.

Reviewed by: MaskRay, labath, aprantl

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




More information about the All-commits mailing list