summaryrefslogtreecommitdiffstats
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2005-06-17 13:39:56 +0000
committerJakub Jelinek <jakub@redhat.com>2005-06-17 13:39:56 +0000
commita50b216054a45bff721b7e15d987684e5c380625 (patch)
tree9bcf519e381cf4fb1dc48a0340c6861a789a317b /bfd/coffcode.h
parent08d8fa11878dc2fb68745443a892106379121882 (diff)
downloadppe42-binutils-a50b216054a45bff721b7e15d987684e5c380625.tar.gz
ppe42-binutils-a50b216054a45bff721b7e15d987684e5c380625.zip
* elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
symbol, relocation, group or versym sections. * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs is NULL. * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address doesn't point into the section.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 917c0e4522..8b01f9ee93 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4830,7 +4830,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
amt = (bfd_size_type) asect->reloc_count * sizeof (arelent);
reloc_cache = bfd_alloc (abfd, amt);
- if (reloc_cache == NULL)
+ if (reloc_cache == NULL || native_relocs == NULL)
return FALSE;
for (idx = 0; idx < asect->reloc_count; idx++)
OpenPOWER on IntegriCloud