Re: stab nearest_line bfd_malloc_and_get_section
authorAlan Modra <amodra@gmail.com>
Tue, 4 Oct 2022 23:57:46 +0000 (10:27 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 5 Oct 2022 04:23:41 +0000 (14:53 +1030)
commit011a13613403c42717c623b0c5fc1e69de9f65b5
tree99d04c683d74038b26d46c7a322cb5a2a22d4fa1
parent9c48ba47b36c3b243727af49bfebb867d7930de3
Re: stab nearest_line bfd_malloc_and_get_section

It didn't take long for the fuzzers to avoid size checks in
bfd_malloc_and_get_section.  Plug this hole.

* syms.c (_bfd_stab_section_find_nearest_line): Ignore fuzzed
sections with no contents.
bfd/syms.c