[Bug c++/105115] `demangle_const` causes infinite recursion and stack overflow

2022-05-17 Thread ronghua at iu dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105115 --- Comment #2 from ronghua at iu dot edu --- The simplified PoC: $ echo _RYAbB2_ | ./binutils/cxxfilt Segmentation fault Root Cause Analysis: 1. In `rust_demangle_callback`, "_R" at beginning causes `rdm.version == 0`[1][2], so `demangle_pat

[Bug c++/105115] `demangle_const` causes infinite recursion and stack overflow

2022-05-17 Thread ronghua at iu dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105115 --- Comment #1 from ronghua at iu dot edu --- Hello, It's already more than one month since my post, and the bug still exists at latest commit (e.i. e84412c6a3c3eed1a4eca5fe18f329bfa7efea40), so I would like to know why it is still `UNCONFIRMED`.

[Bug c++/105115] New: `demangle_const` causes infinite recursion and stack overflow

2022-03-30 Thread ronghua at iu dot edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105115 Bug ID: 105115 Summary: `demangle_const` causes infinite recursion and stack overflow Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal