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

            Bug ID: 17597
           Summary: NULL pointer dereference in opncls.c in
                    bfd_get_debug_link_info().
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: oxffffaa at gmail dot com

I use tcc to compile simple source, but when i try to 'objdump -S -d a.out' it
crushes with SIGSEGV. Reason is in opncls.c, function 'bfd_get_debug_link_info'
in line: 'crc_offset = strlen(name) + 1;' because pointer name is NULL and
strlen requries valid pointer. So is it problem of tcc(i mean this pointer
can't be NULL) or problem of bfd? I add check for whether name is NULL or not
and objdump seems work with this case.

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

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to