bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/21377] New: readelf: NULL pointer dereference in print_sym


From: ago at gentoo dot org
Subject: [Bug binutils/21377] New: readelf: NULL pointer dereference in print_symbol_for_build_attribute (readelf.c)
Date: Wed, 12 Apr 2017 14:05:43 +0000

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

            Bug ID: 21377
           Summary: readelf: NULL pointer dereference in
                    print_symbol_for_build_attribute (readelf.c)
           Product: binutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: ago at gentoo dot org
  Target Milestone: ---

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

Hello,

this is compiled from master. I don't know if previous version are affected.

# readelf -a $FILE
==7569==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000004 (pc
0x0000005ca9f5 bp 0x7ffcef629b70 sp 0x7ffcef629b20 T0)
==7569==The signal is caused by a READ memory access.
==7569==Hint: address points to the zero page.
    #0 0x5ca9f4 in print_symbol_for_build_attribute
/tmp/portage/sys-devel/binutils-9999/work/binutils/binutils/readelf.c:16671:16


Reproducer:
https://github.com/asarubbo/poc/blob/master/00273-binutils-NULLptr-print_symbol_for_build_attribute

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