Blame SOURCES/binutils-CVE-2018-7208.patch

381f6c
--- binutils.orig/bfd/coffgen.c	2018-04-27 09:23:33.449859052 +0100
381f6c
+++ binutils-2.30/bfd/coffgen.c	2018-04-27 09:34:34.530135122 +0100
381f6c
@@ -1555,7 +1555,8 @@ coff_pointerize_aux (bfd *abfd,
381f6c
     }
381f6c
   /* A negative tagndx is meaningless, but the SCO 3.2v4 cc can
381f6c
      generate one, so we must be careful to ignore it.  */
381f6c
-  if (auxent->u.auxent.x_sym.x_tagndx.l > 0)
381f6c
+  if ((unsigned long) auxent->u.auxent.x_sym.x_tagndx.l
381f6c
+      < obj_raw_syment_count (abfd))
381f6c
     {
381f6c
       auxent->u.auxent.x_sym.x_tagndx.p =
381f6c
 	table_base + auxent->u.auxent.x_sym.x_tagndx.l;