mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 12:03:41 +08:00
Another sanity check for read_section_stabs_debugging_info
* rddbg.c (read_section_stabs_debugging_info): Ignore invalid stab sections with size less than 12 bytes.
This commit is contained in:
parent
027333da75
commit
75831f18a0
@ -119,6 +119,7 @@ read_section_stabs_debugging_info (bfd *abfd, asymbol **syms, long symcount,
|
||||
strsec = bfd_get_section_by_name (abfd, names[i].strsecname);
|
||||
if (sec != NULL
|
||||
&& (bfd_section_flags (sec) & SEC_HAS_CONTENTS) != 0
|
||||
&& bfd_section_size (sec) >= 12
|
||||
&& strsec != NULL
|
||||
&& (bfd_section_flags (strsec) & SEC_HAS_CONTENTS) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user