Open Quuxplusone opened 7 years ago
Bugzilla Link | PR32879 |
Status | NEW |
Importance | P normal |
Reported by | Manh-Dung Nguyen (dungnguy@comp.nus.edu.sg) |
Reported on | 2017-05-02 03:12:47 -0700 |
Last modified on | 2018-01-19 16:25:48 -0800 |
Version | unspecified |
Hardware | All Linux |
CC | emaste@freebsd.org, kcc@google.com, llvm-bugs@lists.llvm.org, marcel.boehme@nus.edu.sg, mclow.lists@gmail.com |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Yes, the demangler is full of stack overflows.
I suggest to not file many different bugs, but keep just one bug open instead.
Maybe just add stuff below https://bugs.llvm.org//show_bug.cgi?id=31031#c6
oss-fuzz has seen stack overflows too, but did not report upstream because,
sadly, such bugs are not getting fixed anyway.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=985
I was looking into the reported stack-overflows. As a quick-fix one could track
and bound the recursion depth. However, using an arbitrary constant is tricky
and might violate the coding practices here at LLVM (It does for GNU). A proper
patch would turn the recursion into iteration. However, this requires *major*
refactoring.
Thoughts?