[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/20078] New: elf.c line 410 has no check for sh_link before
From: |
ecular at 163 dot com |
Subject: |
[Bug binutils/20078] New: elf.c line 410 has no check for sh_link before accessing sections |
Date: |
Thu, 12 May 2016 08:55:32 +0000 |
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/20078] New: elf.c line 410 has no check for sh_link before accessing sections,
ecular at 163 dot com <=