PR binutils/17512
* elf64-ppc.c (opd_entry_value): Tighten offset check. Remove
now redundant assert.
+2015-02-13 Alan Modra <amodra@gmail.com>
+
+ PR binutils/17512
+ * elf64-ppc.c (opd_entry_value): Tighten offset check. Remove
+ now redundant assert.
+
2015-02-12 Nick Clifton <nickc@redhat.com>
PR binutils/17512
}
/* PR 17512: file: 64b9dfbb. */
- if (offset > bfd_section_size (opd_bfd, opd_sec))
+ if (offset + 7 >= opd_sec->size || offset + 7 < offset)
return (bfd_vma) -1;
val = bfd_get_64 (opd_bfd, contents + offset);
/* Go find the opd reloc at the sym address. */
lo = relocs;
- BFD_ASSERT (lo != NULL);
hi = lo + opd_sec->reloc_count - 1; /* ignore last reloc */
val = (bfd_vma) -1;
while (lo < hi)