More fixes for invalid memory accesses triggered by fuzzed binaries.
[deliverable/binutils-gdb.git] / bfd / elf32-i386.c
index 24e3d4cc319a1a7d670e66c2cc539c238127579a..85acf0fce6d53c9e77414f56d335ae50c42c4af9 100644 (file)
@@ -5194,8 +5194,9 @@ bad_return:
     {
       long reloc_index;
 
-      if (p->howto->type != R_386_JUMP_SLOT
-         && p->howto->type != R_386_IRELATIVE)
+      if (p->howto == NULL /* PR 17512: file: bc9d6cf5.  */
+         || (p->howto->type != R_386_JUMP_SLOT
+             && p->howto->type != R_386_IRELATIVE))
        continue;
 
       reloc_index = H_GET_32 (abfd, (plt_contents + plt_offset
This page took 0.032419 seconds and 4 git commands to generate.