https://sourceware.org/bugzilla/show_bug.cgi?id=20907

            Bug ID: 20907
           Summary: Internal error in peicode.h causes program to abort
           Product: binutils
           Version: 2.28 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: thuanpv at comp dot nus.edu.sg
  Target Milestone: ---

Dear all,
Using AFLFast (https://github.com/mboehme/aflfast), a fork of AFL, we found an
input causing different programs (addr2line, strings and size) to abort due to
an exception in peicode.h.

The bug was found on Ubuntu 14.04 64-bit & binutils was checked out from
https://github.com/bminor/binutils-gdb repository. Its commit is 
268ebe95201d2ebdcf68cad9dc67ff6d1e25be9e (Fri Nov 18 14:15:12 2016). We also
checked and confirmed the bug using the newest development version of binutils
& binutils 2.24. 

To reproduce:

printf
"\x00\x00\xff\xff\x00\x00\x4c\x01\x30\x30\x30\x30\x24\x00\x00\x00\x00\x00\x01\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x00\x00\x30\x30\x30\x30\x30\x30\x30\x30"
> fd

addr2line -e fd

OR

size fd

OR

strings -d fd

Error message:

BFD (GNU Binutils) 2.27.51.20161128 internal error, aborting at
../../bfd/peicode.h:896 in pe_ILF_build_a_bfd

Best regards,
Thuan

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

Reply via email to