* elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
authorJakub Jelinek <jakub@redhat.com>
Thu, 26 May 2005 07:41:13 +0000 (07:41 +0000)
committerJakub Jelinek <jakub@redhat.com>
Thu, 26 May 2005 07:41:13 +0000 (07:41 +0000)
commit24639c7dfef1a7640481cfc2723879f9ffe0ae1c
treead81ce3f8525a9dd420bb032b76a113507e96c56
parenta7519a3c057af6f71dcf4720270b3c4cf6e740a1
* 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