[PATCH] D43092: [DebugInfo] Prevent infinite recursion for malformed DWARF

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 18 13:35:38 PDT 2018


JDevlieghere updated this revision to Diff 142992.
JDevlieghere removed a subscriber: clayborg.
JDevlieghere added a comment.
Herald added a subscriber: jkorous.

- Turn recursion into worklist.
- Keep track of already seen DIEs.


https://reviews.llvm.org/D43092

Files:
  llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
  llvm/test/tools/llvm-dwarfdump/X86/invalid_abstract_origin.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43092.142992.patch
Type: text/x-patch
Size: 13996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180418/7dcd84c7/attachment.bin>


More information about the llvm-commits mailing list