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.
1 file changed