79f83cf3ce
Resolves: #1739491
18 lines
436 B
Diff
18 lines
436 B
Diff
--- 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;
|
|
}
|
|
|