]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR32663, ld buffer overflow reading .debug_info
authorAlan Modra <amodra@gmail.com>
Sun, 9 Feb 2025 09:45:02 +0000 (20:15 +1030)
committerAlan Modra <amodra@gmail.com>
Sun, 9 Feb 2025 10:12:58 +0000 (20:42 +1030)
commit2c6e1a4cd3681a49787f978fe924b74aed4cd4cc
tree279d42781ebdcd07a7f74ffc5abedb1e8f1c0d08
parent38ee3a7664f00778fcc895a7f279c289a12cdbfd
PR32663, ld buffer overflow reading .debug_info

When reading debug info to print an error message, we'll be reading
the debug info off disk, not using edited debug info.  sec->rawsize
if non-zero is the correct size.

PR 32663
* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Use
bfd_get_section_limit_octets to properly size debug sections.
bfd/dwarf2.c