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

           Summary: strip crashes when it does not recognise the file
                    format
           Product: binutils
           Version: 2.21
            Status: NEW
          Severity: critical
          Priority: P2
         Component: binutils
        AssignedTo: unassig...@sources.redhat.com
        ReportedBy: j...@das-labor.org


The crash occurs when the target is of an unknown format.
The problem seems to be a NULL-pointer dereference in ./bfd/bfdio.c on line 206
as can be seen from the gdb output below:

/usr/bin/strip:libeay32.lib(tmp32/e_capi.obj): Unable to recognize the format
of file: File format not recognized

Program received signal SIGSEGV, Segmentation fault.
bfd_bwrite (ptr=0x807ed00, size=335, abfd=0x0) at
/build/src/binutils/bfd/bfdio.c:206
206       if (abfd->iovec)

strip --version is: GNU strip (GNU Binutils) 2.21.0.20110209

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

Reply via email to