[PATCH] D43092: [DebugInfo] Prevent infinite recursion for malformed DWARF
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 02:22:07 PST 2018
JDevlieghere added a subscriber: clayborg.
JDevlieghere added a comment.
In https://reviews.llvm.org/D43092#1002677, @dblaikie wrote:
> Could you check the revision history here? I'm pretty sure the first version of this I reviewed from Greg wasn't recursive - and then it became recursive at some point to handle something needed, but maybe those decisions need to be reexamined?
It was @clayborg himself that updated the implementation. (https://reviews.llvm.org/D40156 https://reviews.llvm.org/rL319104)
> The previous implementation would only look 1 DW_AT_specification or DW_AT_abstract_origin deep. This means DWARFDie::getName() would fail in certain cases. I ran into such a case while creating a tool that used the LLVM DWARF parser to generate a symbolication format so I have seen this in the wild.
https://reviews.llvm.org/D43092
More information about the llvm-commits
mailing list