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

1ca8a1
--- binutils.orig/libiberty/simple-object-elf.c	2019-08-09 14:13:51.677330065 +0100
1ca8a1
+++ binutils-2.32/libiberty/simple-object-elf.c	2019-08-09 14:14:31.177076298 +0100
1ca8a1
@@ -549,6 +549,14 @@ simple_object_elf_match (unsigned char h
1ca8a1
       return NULL;
1ca8a1
     }
1ca8a1
 
1ca8a1
+  if (eor->shstrndx == 0)
1ca8a1
+    {
1ca8a1
+      *errmsg = "invalid ELF shstrndx == 0";
1ca8a1
+      *err = 0;
1ca8a1
+      XDELETE (eor);
1ca8a1
+      return NULL;
1ca8a1
+    }
1ca8a1
+
1ca8a1
   return (void *) eor;
1ca8a1
 }
1ca8a1