[llvm] [libDebugInfo] Prevent infinite recursion in DWARFDie::getTypeSize() (PR #74681)

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 08:32:41 PST 2023


dwblaikie wrote:

A more general question: libDebugInfoDWARF isn't at all robust to "interesting" let alone invalid input - this fixes one instance, but I'm wondering what your goals are. If this bug was worth fixing, what's your use case/what else are you planning to fix/handle? 

(might be worth a broader discussion about how we might go about doing that? I'm not sure how this compares to Clang's recursion limits, for instance? Not sure if they use a similarly "visited" system, or if there's some other tools/techniques to consider?)

https://github.com/llvm/llvm-project/pull/74681


More information about the llvm-commits mailing list