bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28295] New: [c++filt] Stack overflow in demangle_path


From: irfanariq at kaist dot ac.kr
Subject: [Bug binutils/28295] New: [c++filt] Stack overflow in demangle_path
Date: Tue, 31 Aug 2021 12:46:15 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=28295

            Bug ID: 28295
           Summary: [c++filt] Stack overflow in demangle_path
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: irfanariq at kaist dot ac.kr
  Target Milestone: ---

Created attachment 13641
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13641&action=edit
poc and full stack trace

Hello,

We are currently working on fuzz testing feature, and we found a crash on
c++filt.

The stack traces are as follow:
==617==ERROR: AddressSanitizer: stack-overflow on address 0x7fffe1fa7ff8 (pc
0x555911cd5385 bp 0x7fffe1fa8140 sp 0x7fffe1fa8000 T0)
    #0 0x555911cd5384 in demangle_path rust-demangle.c:674
    #1 0x555911cd5e48 in demangle_path rust-demangle.c:774
    #2 0x555911cd56a1 in demangle_path rust-demangle.c:696
    #3 0x555911cd5e48 in demangle_path rust-demangle.c:774
    #4 0x555911cd56a1 in demangle_path rust-demangle.c:696
    ...
    #247 0x555911cd5e48 in demangle_path rust-demangle.c:774
    #248 0x555911cd56a1 in demangle_path rust-demangle.c:696
    #249 0x555911cd5e48 in demangle_path rust-demangle.c:774
    #250 0x555911cd56a1 in demangle_path rust-demangle.c:696
We also attach the full stack trace in the attachment.

**Step to reproduce**

We configured c++filt using 

$ CFLAGS="-g -O0 -fsanitize=address" ./configure --disable-shared
--enable-targets=all

,and built it using 

$ make -j10; make install 

,and run it with:

$ ./c++filt @<input file>

The input file is in the attachment.

**Environment**
- OS: Ubuntu 18.04.5 LTS
- GCC version: gcc 7.5.0
- binutils version: commit (7de7786bb7db5159fc8a7bfa3df72381ff16a38c) of master
branch on sourceware git
(https://sourceware.org/git/?p=binutils-gdb.git;a=tree;h=7de7786bb7db5159fc8a7bfa3df72381ff16a38c;hb=7de7786bb7db5159fc8a7bfa3df72381ff16a38c)

Thank you.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]