[PATCH] D39294: [llvm-dwarfdump] - Fix issues that might happen when object with broken DWARF expressions is parsed.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 09:22:24 PDT 2017


grimar created this revision.

Patch improves next things:

1. Fixes assert/crash in `getOpDesc` when giving it a invalid expression op code.
2. `DWARFExpression::print()` called `DWARFExpression::Operation::getEndOffset()` which returned and used uninitialized field EndOffset. Patch fixes that.
3. Teaches verifier to verify DW_AT_location and error out on broken expressions.


https://reviews.llvm.org/D39294

Files:
  lib/DebugInfo/DWARF/DWARFExpression.cpp
  lib/DebugInfo/DWARF/DWARFVerifier.cpp
  test/tools/llvm-dwarfdump/X86/verify_broken_exprloc.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39294.120268.patch
Type: text/x-patch
Size: 5575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171025/fdb4d92e/attachment.bin>


More information about the llvm-commits mailing list