https://sourceware.org/bugzilla/show_bug.cgi?id=33638
--- Comment #2 from Sourceware Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <[email protected]>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=598704a00cbac5e85c2bedd363357b5bf6fcee33 commit 598704a00cbac5e85c2bedd363357b5bf6fcee33 Author: Alan Modra <[email protected]> Date: Sat Nov 22 09:22:10 2025 +1030 PR 33638, debug_rnglists output The fuzzed testcase in this PR continuously outputs an error about the debug_rnglists header. Fixed by taking notice of the error and stopping output. The patch also limits the length in all cases, not just when a relocation is present, and limits the offset entry count read from the header. I removed the warning and the test for relocs because the code can't work reliably with unresolved relocs in the length field. PR 33638 * dwarf.c (display_debug_rnglists_list): Return bool. Rename "inital_length" to plain "length". Verify length is large enough to read header. Limit length to rest of section. Similarly limit offset_entry_count. (display_debug_ranges): Check display_debug_rnglists_unit_header return status. Stop output on error. -- You are receiving this mail because: You are on the CC list for the bug.
