[Bug c++/87335] The stack overflow in function cplus_demangle_type in cp-demangle.c:2565 (c++filt -t)
wcventure at 126 dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 18 10:08:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87335
--- Comment #5 from Cheng Wen <wcventure at 126 dot com> ---
(In reply to Jonathan Wakely from comment #4)
> Are you sure you attached the right file? When I try to demangle the
> attachment it doesn't crash, the __cxa_demangle file returns -2, meaning the
> name is not valid. That seems like the right result.
I have tried to reproduce this bug on different machines.
There are some questions to be confirmed.
(1) Do you use the latest version of binutils(binutils-2.32/binutils-2.31)? I
downloaded the package from here.
https://www.gnu.org/software/binutils/
(2) Please confirm that you have used the option "-t".
The command should be "./c++filt -t < $POC"
(3) Do you confirm this POC with address sanitizer?
More information about the Gcc-bugs
mailing list