[Bug binutils/17597] New: NULL pointer dereference in opncls.c in bfd_get_debug_link_info().

2014-11-13 Thread oxffffaa at gmail dot com
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: oxaa 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


[Bug binutils/17597] NULL pointer dereference in opncls.c in bfd_get_debug_link_info().

2014-11-13 Thread oxffffaa at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17597

--- Comment #2 from oxaa at gmail dot com ---
Created attachment 7929
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7929&action=edit
ELF file to produce

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


[Bug binutils/17597] NULL pointer dereference in opncls.c in bfd_get_debug_link_info().

2014-11-17 Thread oxffffaa at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17597

--- Comment #5 from arseniy krasnov  ---
(In reply to Nick Clifton from comment #4)
> Created attachment 7935 [details]
> Fix derefence by checking length of the section
> 
> I have applied this patch to the master branch sources.  It should fix the
> problem for you.
> 
> Cheers
>   Nick

Hi, thank you! Now seems ok!

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


[Bug binutils/17597] NULL pointer dereference in opncls.c in bfd_get_debug_link_info().

2014-11-21 Thread oxffffaa at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=17597

arseniy krasnov  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from arseniy krasnov  ---
i think resolved

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