PR binutils/17531
* readelf.c (process_mips_specific): Fail if an option has an
invalid size.
* dwarf.c (xcmalloc): Fail if the arguments are too big.
(xcrealloc): Likewise.
(xcalloc2): Likewise.
+ * readelf.c (process_mips_specific): Fail if an option has an
+ invalid size.
2015-02-05 Alan Modra <amodra@gmail.com>
if (option->size < sizeof (* eopt)
|| offset + option->size > sect->sh_size)
{
- warn (_("Invalid size (%u) for MIPS option\n"), option->size);
- option->size = sizeof (* eopt);
- break;
+ error (_("Invalid size (%u) for MIPS option\n"), option->size);
+ return 0;
}
offset += option->size;