On version 2.30.51.20180206 and master branch of binutils:
there is a reachable assertion in the find_section function of
(src/binutils/readelf.c), which could be triggered by the following POC.

The assertion statement is:
    653 static Elf_Internal_Shdr *
    654 find_section (Filedata * filedata, const char * name) {
    658   assert (filedata->section_headers != NULL);
    664   return NULL;
    665 }

readelf: binutils/master/src/binutils/readelf.c:658: find_section:
Assertion `filedata->section_headers != ((void *)0)' failed.
./repro: line 54: 175376 Aborted                 $CMD

To reproduce the issue, run: ./bin/readelf -a $POC
POC:
https://github.com/ProbeFuzzer/poc/blob/master/binutils/binutils_2-30-51_readelf_reachable-assertion_find_section
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to