bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/4797] New: SEGV fault due to NULL pointer deref in dwarf2.


From: dougkwan at google dot com
Subject: [Bug binutils/4797] New: SEGV fault due to NULL pointer deref in dwarf2.c
Date: 16 Jul 2007 23:36:48 -0000

nm -l crashes because of a NULL pointer deref in dwarf2.c. functionname_ptr can
be NULL and there are tests in the logic of the function find_line to deal with
that case. Yet, in line 2383 of current top, functionname_ptr is dereference
without check for NULL.

The fix is to check for NULL before using functionname_ptr. I tried a one-line
fix and it seems to work.

-- 
           Summary: SEGV fault due to NULL pointer deref in dwarf2.c
           Product: binutils
           Version: 2.18 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: dougkwan at google dot com
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-linux-gnu
  GCC host triplet: i686-linux-gnu
GCC target triplet: i686-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=4797

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]