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

Jonas Devlieghere via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Apr 29 08:56:57 PDT 2018


JDevlieghere updated this revision to Diff 144485.
JDevlieghere added a comment.

Use SmallSet<DWARFDie, 3> (running dsymutil over clang showed that there were never more than 3 elements in the set for valid DWARF).


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.144485.patch
Type: text/x-patch
Size: 14151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180429/26c1b73c/attachment.bin>


More information about the llvm-commits mailing list