OSDN Git Service

* elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
authorjakub <jakub>
Thu, 26 May 2005 07:41:10 +0000 (07:41 +0000)
committerjakub <jakub>
Thu, 26 May 2005 07:41:10 +0000 (07:41 +0000)
commitf70b7acabe4709883f4d945ec25a37d6285be410
treeb9ee5b71e0312577905279b59be0b09f5809af6b
parentc0e8bf407a44fbd2a39c3eed0d8d50151d9bcff5
* elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
first shdr has sh_size == 0.  Fail if e_shnum is large to cause
arithmetic overflow when allocating the i_shdr array.
Sanity check sh_link and sh_info fields.  Fix e_shstrndx sanity check.
bfd/ChangeLog
bfd/elfcode.h