b430795c93
Resolves: #1680676
17 lines
572 B
Diff
17 lines
572 B
Diff
--- binutils.orig/binutils/readelf.c 2019-02-26 11:17:12.414525772 +0000
|
|
+++ binutils-2.31.1/binutils/readelf.c 2019-02-26 12:11:40.642876742 +0000
|
|
@@ -16009,6 +16009,13 @@ process_mips_specific (Filedata * fileda
|
|
return FALSE;
|
|
}
|
|
|
|
+ /* PR 24243 */
|
|
+ if (sect->sh_size < sizeof (* eopt))
|
|
+ {
|
|
+ error (_("The MIPS options section is too small.\n"));
|
|
+ return FALSE;
|
|
+ }
|
|
+
|
|
eopt = (Elf_External_Options *) get_data (NULL, filedata, options_offset, 1,
|
|
sect->sh_size, _("options"));
|
|
if (eopt)
|