[all-commits] [llvm/llvm-project] 1a7890: [DebugInfo] Report errors for truncated debug line...

James Henderson via All-commits all-commits at lists.llvm.org
Mon Jun 15 03:50:40 PDT 2020


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

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

  Log Message:
  -----------
  [DebugInfo] Report errors for truncated debug line standard opcode

Standard opcodes usually have ULEB128 arguments, so it is generally not
possible to recover from such errors. This patch causes the parser to
stop parsing the table in such situations.

Also don't emit the operands or add data to the table if there is an
error reading these opcodes.

Reviewed by: JDevlieghere

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




More information about the All-commits mailing list