You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
436 B
18 lines
436 B
--- binutils.orig/libiberty/simple-object-elf.c 2019-08-09 14:13:51.677330065 +0100
|
|
+++ binutils-2.32/libiberty/simple-object-elf.c 2019-08-09 14:14:31.177076298 +0100
|
|
@@ -549,6 +549,14 @@ simple_object_elf_match (unsigned char h
|
|
return NULL;
|
|
}
|
|
|
|
+ if (eor->shstrndx == 0)
|
|
+ {
|
|
+ *errmsg = "invalid ELF shstrndx == 0";
|
|
+ *err = 0;
|
|
+ XDELETE (eor);
|
|
+ return NULL;
|
|
+ }
|
|
+
|
|
return (void *) eor;
|
|
}
|
|
|