https://sourceware.org/bugzilla/show_bug.cgi?id=20078
Bug ID: 20078
Summary: elf.c line 410 has no check for sh_link before
accessing sections
Product: binutils
Version: 2.26
Status: NEW
Severity: normal
Priority: P2
Component: binutils
Assignee: unassigned at sourceware dot org
Reporter: ecular at 163 dot com
Target Milestone: ---
Created attachment 9254
--> https://sourceware.org/bugzilla/attachment.cgi?id=9254&action=edit
After running nm-new crash it may case segment fault.
for (entry = elf_symtab_shndx_list (ibfd); entry != NULL; entry = entry->next)
if (sections[entry->hdr.sh_link] == symtab_hdr)
{
shndx_hdr = & entry->hdr;
break;
};
Before accessing sections[entry->hdr.sh_link], it has no size check for
hdr.sh_link. It may case Access Violation Fault.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils