bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/29948] AddressSanitizer: heap-buffer-overflow in display_d


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/29948] AddressSanitizer: heap-buffer-overflow in display_debug_lines_decoded() at dwarf.c:5429
Date: Fri, 30 Dec 2022 11:55:39 +0000

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

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a984f112b015b7d33c3c91230eb4c35695926539

commit a984f112b015b7d33c3c91230eb4c35695926539
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Dec 30 11:41:16 2022 +1030

    PR29948, heap-buffer-overflow in display_debug_lines_decoded

    This fixes a couple of places in display_debug_lines_decoded that were
    off by one in checking DWARF5 .debug_line directory indices.  It also
    displays the DWARF5 entry 0 for the program current directory rather
    than "." as is done for pre-DWARF5.  I decided against displaying
    DW_AT_comp_dir for pre-DWARF5 since I figure it is better for readelf
    to minimally interpret debug info.

    binutils/
            PR 29948
            * dwarf.c (display_debug_lines_decoded): Display the given
            directory entry 0 for DWARF5.  Properly check directory index
            against number of entries in the table.  Revert to using
            unsigned int for n_directories and associated variables.
            Correct warning messages.
    gas/
            * testsuite/gas/elf/dwarf-5-loc0.d: Update.

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