[Bug binutils/10363] New: objdump -T crashes on corrupted file

View: New views
5 Messages — Rating Filter:   Alert me  

[Bug binutils/10363] New: objdump -T crashes on corrupted file

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

[forwarded from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=487963]

seen with 2.18, 2.19, and trunk 20090704 on x86-64-linux-gnu:

On amd64, the attached file causes objdump -T to crash.

   It's probably possible to create a similar file on another
architecture. Here is how I did:

  ~% zzuf -j4 -qv -s0: -r0.000001:0.01 -c objdump -T /usr/lib/libm.so
  zzuf[s=0,r=1e-06:0.01]: launched `objdump'
     [...]
  zzuf[s=785,r=1e-06:0.01]: launched `objdump'
  zzuf[s=786,r=1e-06:0.01]: launched `objdump'
  zzuf[s=787,r=1e-06:0.01]: signal 11 (SIGSEGV)
  ~% zzuf -s787 -r0.000001:0.01 < /usr/lib/libm.so > /tmp/foo.so
  ~% objdump -T /tmp/foo.so
     [...]
  [1]    7998 segmentation fault  objdump -T /tmp/foo.so

--
           Summary: objdump -T crashes on corrupted file
           Product: binutils
           Version: 2.20 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: doko at debian dot org
                CC: bug-binutils at gnu dot org


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

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


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

[Bug binutils/10363] objdump -T crashes on corrupted file

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From doko at debian dot org  2009-07-05 13:27 -------
Created an attachment (id=4036)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4036&action=view)
example file


--


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

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


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

[Bug binutils/10363] objdump -T crashes on corrupted file

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-08-03 14:02 -------
A patch is posted at

http://sourceware.org/ml/binutils/2009-08/msg00022.html

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hjl dot tools at gmail dot
                   |                            |com


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

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


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

[Bug binutils/10363] objdump -T crashes on corrupted file

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-08-03 23:56 -------
Subject: Bug 10363

CVSROOT: /cvs/src
Module name: src
Changes by: hjl@... 2009-08-03 23:56:08

Modified files:
        bfd            : ChangeLog elf.c

Log message:
        2009-08-03  H.J. Lu  <hongjiu.lu@...>
       
        PR binutils/10363
        * elf.c (bfd_elf_string_from_elf_section): Return NULL on
        invalid string offset.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4716&r2=1.4717
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf.c.diff?cvsroot=src&r1=1.486&r2=1.487



--


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

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


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

[Bug binutils/10363] objdump -T crashes on corrupted file

by Bugzilla from sourceware-bugzilla@sourceware.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


------- Additional Comments From hjl dot tools at gmail dot com  2009-08-04 01:07 -------
Fixed.

--
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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

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


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