Blame SOURCES/binutils-CVE-2019-9077.patch

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