mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 09:14:14 +08:00
* elfcode.h (section_from_elf_index): Correct check for invalid
section index.
This commit is contained in:
@ -2524,7 +2524,7 @@ section_from_elf_index (abfd, index)
|
||||
if (index == SHN_COMMON)
|
||||
return bfd_com_section_ptr;
|
||||
|
||||
if (index > elf_elfheader (abfd)->e_shnum)
|
||||
if (index >= elf_elfheader (abfd)->e_shnum)
|
||||
return NULL;
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user