]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
PR 33639 .debug_loclists output
authorAlan Modra <amodra@gmail.com>
Fri, 21 Nov 2025 23:22:18 +0000 (09:52 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 21 Nov 2025 23:22:18 +0000 (09:52 +1030)
commit455446bbdc8675f34808187de2bbad4682016ff7
treeff2efee2af528799026eafa4b363709c3185db39
parent598704a00cbac5e85c2bedd363357b5bf6fcee33
PR 33639 .debug_loclists output

The fuzzed testcase in this PR prints an almost endless table of
offsets, due to a bogus offset count.  Limit that count, and the total
length too.

PR 33639
* dwarf.c (display_loclists_unit_header): Return error on
length too small to read header.  Limit length to section
size.  Limit offset count similarly.
binutils/dwarf.c