bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/22793] New: Reachable assertion in find_section (src/binut


From: probefuzzer at gmail dot com
Subject: [Bug binutils/22793] New: Reachable assertion in find_section (src/binutils/readelf.c)
Date: Tue, 06 Feb 2018 08:08:53 +0000

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

            Bug ID: 22793
           Summary: Reachable assertion in find_section
                    (src/binutils/readelf.c)
           Product: binutils
           Version: 2.30
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: probefuzzer at gmail dot com
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

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