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

            Bug ID: 28047
           Summary: readelf crashed due to Assertion failed in
                    dwarf.c:skip_attr_bytes
           Product: binutils
           Version: 2.37 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: shaohua.li at inf dot ethz.ch
  Target Milestone: ---

Created attachment 13525
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13525&action=edit
poc

Hi there,

I crashed `readelf -w` with a fuzzer. The cause is Assertion `(data) <= (end)'
failed in dwarf.c:skip_attr_bytes.

- Compiler: clang12
- Platform: Ubuntu 18.04.5 LTS, x86_64
- Reproduce: run `readelf -w poc`

The raw output was:

readelf: dwarf.c:1969: unsigned char *skip_attr_bytes(unsigned long, unsigned
char *, unsigned char *, dwarf_vma, dwarf_vma, int, dwarf_vma *): Assertion
`(data) <= (end)' failed.
Aborted

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

Reply via email to