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.
return true;
}
+ if ((info->stabsec->flags & SEC_HAS_CONTENTS) == 0
+ || (info->strsec->flags & SEC_HAS_CONTENTS) == 0)
+ goto out;
+
stabsize = (info->stabsec->rawsize
? info->stabsec->rawsize
: info->stabsec->size);