Bug 23659 - A stack overflow problem for c++filt
Summary: A stack overflow problem for c++filt
Status: RESOLVED MOVED
Alias: None
Product: binutils
Classification: Unclassified
Component: binutils (show other bugs)
Version: 2.32
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-14 21:11 UTC by poppeter1982
Modified: 2018-09-17 16:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
The stack overflow poc (364 bytes, application/octet-stream)
2018-09-14 21:11 UTC, poppeter1982
Details

Note You need to log in before you can comment on or make changes to this bug.
Description poppeter1982 2018-09-14 21:11:42 UTC
Created attachment 11248 [details]
The stack overflow poc

Hi There

Peng Li at Baidu X-Lab found a stack overflow bug in c++filt of the latest binutils code base, I have confirmed it with address sanitizer. Please use the “c++filt < stack_overflow_input ” to reproduce the bug. If you have any questions, please let me know. 

Please note that I submitted this error through email to bug-binutils@gnu.org, please ignore the previous one.
 
Thanks
Peng
Comment 1 Nick Clifton 2018-09-17 16:09:58 UTC
Please report this bug on the gcc bugzilla system here:

  https://gcc.gnu.org/bugzilla/enter_bug.cgi?product=gcc

The bug is in the name demangling functions supplied by
the libiberty library, which is [art of gcc, not the binutils.