[PATCH] D81470: [DebugInfo] Report errors for truncated debug line standard opcode

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 08:12:20 PDT 2020


jhenderson created this revision.
jhenderson added reviewers: dblaikie, MaskRay, labath, JDevlieghere, ikudrin, probinson, aprantl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81470

Files:
  llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
  llvm/unittests/DebugInfo/DWARF/DWARFDebugLineTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81470.269540.patch
Type: text/x-patch
Size: 16175 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200609/4ffdb27c/attachment.bin>


More information about the llvm-commits mailing list