bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27261] New: stack overflow in cxxfilt, peek, rust-demangle


From: featherrain26 at gmail dot com
Subject: [Bug binutils/27261] New: stack overflow in cxxfilt, peek, rust-demangle.c:85
Date: Thu, 28 Jan 2021 07:17:10 +0000

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

            Bug ID: 27261
           Summary: stack overflow in cxxfilt, peek, rust-demangle.c:85
           Product: binutils
           Version: 2.37 (HEAD)
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: featherrain26 at gmail dot com
  Target Milestone: ---

Created attachment 13166
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13166&action=edit
POC

Hi, there.

There is a stack overflow in the newest version(2eda57ef) of cxxfilt,
rust-demangle.c:85 related to path demangling, which directly causes a
segmentation fault.

To reproduce, run
cxxfilt < poc

Here is the trace reported by ASAN:
ASAN:SIGSEGV
=================================================================
==52498==ERROR: AddressSanitizer: stack-overflow on address 0x7ffeeb551ff8 (pc
0x0000009768c0 bp 0x7ffeebd4f8b0 sp 0x7ffeeb551ff8 T0)
    #0 0x9768bf in peek ../../libiberty/rust-demangle.c:85
    #1 0x9768bf in next ../../libiberty/rust-demangle.c:105
    #2 0x9768bf in demangle_path ../../libiberty/rust-demangle.c:674

SUMMARY: AddressSanitizer: stack-overflow ../../libiberty/rust-demangle.c:85
peek
==52498==ABORTING

-- 
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]