[Bug general/25831] New: Assertion failure in eu-objdump

nguyenmanhdung1710 at gmail dot com sourceware-bugzilla@sourceware.org
Thu Apr 16 06:28:01 GMT 2020


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

            Bug ID: 25831
           Summary: Assertion failure in eu-objdump
           Product: elfutils
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: general
          Assignee: unassigned at sourceware dot org
          Reporter: nguyenmanhdung1710 at gmail dot com
                CC: elfutils-devel at sourceware dot org
  Target Milestone: ---

Created attachment 12465
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12465&action=edit
PoC for an assertion failure

Hi,

An assertion failure was discovered in the latest commit 1a9fe4b of elfutils
0.179, as demonstrated by eu-objdump via a crafted file.

To reproduce: eu-objdump -d PoC

Valgrind says:
objdump: ../../libcpu/i386_disasm.c:449: x86_64_disasm: Assertion
`correct_prefix == 0 || (prefixes & correct_prefix) != 0' failed.
==6901== 
==6901== Process terminating with default action of signal 6 (SIGABRT)
==6901==    at 0x56F5428: raise (raise.c:54)
==6901==    by 0x56F7029: abort (abort.c:89)
==6901==    by 0x56EDBD6: __assert_fail_base (assert.c:92)
==6901==    by 0x56EDC81: __assert_fail (assert.c:101)
==6901==    by 0x47BF64: x86_64_disasm (i386_disasm.c:448)
==6901==    by 0x4E4ECE0: disasm_cb (disasm_cb.c:178)
==6901==    by 0x407017: show_disasm (objdump.c:737)
==6901==    by 0x407017: handle_elf (objdump.c:783)
==6901==    by 0x4029BD: process_file (objdump.c:251)
==6901==    by 0x4029BD: main (objdump.c:164)

Thanks,
Manh Dung

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


More information about the Elfutils-devel mailing list