bug-binutils
[Top][All Lists]
Advanced

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

Reachable assertion in find_section (src/binutils/readelf.c)


From: Probe Fuzzer
Subject: Reachable assertion in find_section (src/binutils/readelf.c)
Date: Tue, 6 Feb 2018 03:05:30 -0500

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

reply via email to

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