]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
binutils/dwarf.c debug_information leak
authorAlan Modra <amodra@gmail.com>
Wed, 19 Feb 2025 12:15:29 +0000 (22:45 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Feb 2025 12:33:11 +0000 (23:03 +1030)
commite51fdff7d2e538c0e5accdd65649ac68e6e0ddd4
treec1c459a86a63c63b01fd9f21c48bf8ca21a84242
parent1dd0c74551166c07ba0f26d10432ffa577453713
binutils/dwarf.c debug_information leak

It is possible with fuzzed files to have num_debug_info_entries zero
after allocating space for debug_information, leading to multiple
allocations.

* dwarf.c (process_debug_info): Don't test num_debug_info_entries
to determine whether debug_information has been allocated,
test alloc_num_debug_info_entries.
binutils/dwarf.c