OSDN Git Service

[DebugInfo] Prevent infinite recursion for malformed DWARF
authorJonas Devlieghere <jonas@devlieghere.com>
Mon, 30 Apr 2018 17:02:41 +0000 (17:02 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Mon, 30 Apr 2018 17:02:41 +0000 (17:02 +0000)
commit8cde9622c0a12ffa90f33fe47b8352edd84d7eca
treef43ce8a4f21c4135f624ee88dae7c28d248a64b9
parent44735eb19df9360bac0b3b5d839a0f77a9886a3b
[DebugInfo] Prevent infinite recursion for malformed DWARF

This prevents infinite recursion in DWARFDie::findRecursively for
malformed DWARF where a DIE references itself.

This fixes PR36257.

Differential revision: https://reviews.llvm.org/D43092

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@331200 91177308-0d34-0410-b5e6-96231b3b80d8
lib/DebugInfo/DWARF/DWARFDie.cpp
test/tools/llvm-dwarfdump/X86/invalid_abstract_origin.s [new file with mode: 0644]