BFD overflows (part 2)

Nick Clifton nickc@redhat.com
Tue May 17 18:25:00 GMT 2005


Hi Mike,

> 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

This was a nasty one - the file was stimulating an infinite loop inside 
the code in elf.c between group_signature() and bfd_section_from_shdr(). 
  Anyway I will be checking in the attached patch to catch and prevent 
this occurring in the future.

Cheers
   Nick

bfd/ChangeLog
2005-05-17  Nick Clifton  <nickc@redhat.com>

	* elf.c (group_signature): Check for a group section which is
	actually a (corrupt) symbol table section in disguise and prevent
	an infinite loop from occurring.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: elf.c.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20050517/a60e250d/attachment.ksh>


More information about the Binutils mailing list