bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/29382] New: nm: stack-overflow in binutils-2.37


From: tricker51449 at gmail dot com
Subject: [Bug binutils/29382] New: nm: stack-overflow in binutils-2.37
Date: Tue, 19 Jul 2022 10:46:07 +0000

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

            Bug ID: 29382
           Summary: nm: stack-overflow in binutils-2.37
           Product: binutils
           Version: 2.37
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: tricker51449 at gmail dot com
  Target Milestone: ---

Created attachment 14219
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14219&action=edit
Exception inputs

Hi, binutils team


When i use the nm in binutils-2.37, i get a stack overflow bug reported by
AddressSanitizer.

# ./binutils/nm-new -C nm_crash_0

[1]    80564 segmentation fault (core dumped)

...........

/workspace/fuzzbench/binutils/asan/nm_asan: ./0: invalid string offset
4292804940 >= 592 for section `.strtab'
/workspace/fuzzbench/binutils/asan/nm_asan: ./0: invalid string offset 4259762
>= 592 for section `.strtab'
/workspace/fuzzbench/binutils/asan/nm_asan: ./0: invalid string offset 32719 >=
592 for section `.strtab'
0000024c r
000005f4 V
00001ef4 d
00002014 D
000005ec R
000004ff t (null)
0000201c ? (null)
00001ef8 d (null)
         w (null)
         U (null)
00002018 D (null)
         w ^_cxa_finalize@@GLI�C_2.1.
00002000 d _GLOBAL_OFFSET_TCBLE_
00000570 T _Llibc_csu_init
0000201c D _RTMC_END__
         w _RTMC_END__
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4128==ERROR: AddressSanitizer: stack-overflow on address 0x7ffecab91fc8 (pc
0x00000043320a bp 0x7ffecab92810 sp 0x7ffecab91fd0 T0)
    #0 0x43320a in memcpy (/workspace/fuzzbench/binutils/asan/nm_asan+0x43320a)
    #1 0x70e7c7 in str_buf_append
/workspace/binutils-2.37/libiberty/./rust-demangle.c:1512:3
    #2 0x70e7c7 in str_buf_demangle_callback
/workspace/binutils-2.37/libiberty/./rust-demangle.c:1519:3
    #3 0x7084a6 in print_str
/workspace/binutils-2.37/libiberty/./rust-demangle.c:279:5
    #4 0x7084a6 in demangle_type
/workspace/binutils-2.37/libiberty/./rust-demangle.c:911:7 
.....


Attached is the exception input file. Any help would be greatly appreciated.

Thanks & Best regards

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