OSDN Git Service

* 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)
commitfbd407c80cb432f03c3a0b9a0bdcb8d82a92a6e2
tree616e1a3596027cc07dafea923ceb635b48ade827
parent047f62386c3ae2fbf7e7e54c7ab2c79522ad0f26
* 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