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

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