[Bug binutils/24168] segment fault in nm-new in binutils-2.30

2019-02-11 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=24168

Nick Clifton  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #4 from Nick Clifton  ---
(In reply to zhangyn2012 from comment #2)

Hi Zhangyn,

> I debugged and found that in the loop of nm.c:983, when j increased to 44, a
> null pointer dereference is triggered because though it checks
> r->sym_ptr_ptr is not null, *r->sym_ptr_ptr is a null pointer. nm.c:989
> accesses *r->sym_ptr_ptr->section which causes the program to crash.

Thanks - that help me to reproduce the problem.

I have checked in a fix to the 2.30 branch.

As far I was able to tell this problem has already been fixed from 2.31
onwards,
although I did not spend the time to track down the exact commit that fixed the
bug.

Cheers
  Nick

-- 
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/24168] segment fault in nm-new in binutils-2.30

2019-02-11 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=24168

--- Comment #3 from cvs-commit at gcc dot gnu.org  ---
The binutils-2_30-branch branch has been updated by Nick Clifton
:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c6f021093dbd26b4d8e761e9a19af817e9f2561f

commit c6f021093dbd26b4d8e761e9a19af817e9f2561f
Author: Nick Clifton 
Date:   Mon Feb 11 16:15:59 2019 +

Fix a NULL pointer dereference in nm, when parsing a corrupt file.

PR 24168
* nm.c (print_symbol): Check for NULL contents of the sym_ptr_ptr
field.

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