bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/27884] New: readelf: ../../binutils/dwarf.c:1965: skip_att


From: mliska at suse dot cz
Subject: [Bug binutils/27884] New: readelf: ../../binutils/dwarf.c:1965: skip_attr_bytes: Assertion `(data) <= (end)' failed.
Date: Tue, 18 May 2021 11:30:07 +0000

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

            Bug ID: 27884
           Summary: readelf: ../../binutils/dwarf.c:1965: skip_attr_bytes:
                    Assertion `(data) <= (end)' failed.
           Product: binutils
           Version: 2.37 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: mliska at suse dot cz
  Target Milestone: ---

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

Started with:

commit edba4e4abaf679d3ce4d61fcbfe77b2bebfd4537
Author: Alan Modra <amodra@gmail.com>
Date:   Sat May 15 14:39:11 2021 +0930

    process_debug_info

    This patch constrains process_debug_info to stay within the data
    specified by the CU length rather than allowing access up to the end
    of the section.

            * dwarf.c (process_debug_info): Always do the first CU length
            scan for sanity checks.  Remove initial_length_size var and
            instead calculate end_cu.  Use end_cu to limit data reads.
            Delete now dead code checking length.

for a test-case taken from dwz test-suite:

$ ./binutils/readelf -wi 1 >/dev/null
readelf: ../../binutils/dwarf.c:1965: skip_attr_bytes: Assertion `(data) <=
(end)' failed.
Aborted (core dumped)

-- 
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]