This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

BFD overflows (part 2)


the previous patch by Alan Modra fixed up many of the test cases we've been 
using, but there's still some left that cause strings to segfualt (tested 
against vanilla binutils-2.16.90.0.3)

find attached two binaries which trigger segfaults in different locations

strings.024:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000419f37 in bfd_section_from_shdr (abfd=0x584090, shindex=20)
    at elf.c:1751
1751          if (elf_elfsections (abfd)[hdr->sh_link]->sh_type != SHT_STRTAB)

strings.095:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000418678 in bfd_elf_string_from_elf_section (abfd=0x4643a0, 
    shindex=5784064, strindex=47) at elf.c:280
280     {
-mike

Attachment: strings.024.bz2
Description: BZip2 compressed data

Attachment: strings.095.bz2
Description: BZip2 compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]