mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
2001-11-02 H.J. Lu (hjl@gnu.org)
* coffgen.c (coff_object_p): Return 0 if the header is too big.
This commit is contained in:
parent
3559696cf5
commit
95f7d9f7b7
@ -1,3 +1,7 @@
|
||||
2001-11-02 H.J. Lu (hjl@gnu.org)
|
||||
|
||||
* coffgen.c (coff_object_p): Return 0 if the header is too big.
|
||||
|
||||
2001-11-02 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
* elfcore.h (elf_core_file_p): Preserve and clear abfd section
|
||||
|
@ -280,7 +280,8 @@ coff_object_p (abfd)
|
||||
bfd_coff_swap_filehdr_in (abfd, filehdr, &internal_f);
|
||||
bfd_release (abfd, filehdr);
|
||||
|
||||
if (bfd_coff_bad_format_hook (abfd, &internal_f) == false)
|
||||
if (bfd_coff_bad_format_hook (abfd, &internal_f) == false
|
||||
|| internal_f.f_opthdr > aoutsz)
|
||||
{
|
||||
bfd_set_error (bfd_error_wrong_format);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user