diff options
Diffstat (limited to 'system/binutils/CVE-2019-14250.patch')
-rw-r--r-- | system/binutils/CVE-2019-14250.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/system/binutils/CVE-2019-14250.patch b/system/binutils/CVE-2019-14250.patch new file mode 100644 index 000000000..fedc4fa7f --- /dev/null +++ b/system/binutils/CVE-2019-14250.patch @@ -0,0 +1,25 @@ +Author: marxin +Date: Tue Jul 23 07:33:32 2019 UTC +https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=273718 + +libiberty: Check zero value shstrndx in simple-object-elf.c + +--- trunk/libiberty/simple-object-elf.c 2019/07/23 07:31:50 273717 ++++ trunk/libiberty/simple-object-elf.c 2019/07/23 07:33:32 273718 +@@ -548,7 +548,15 @@ + XDELETE (eor); + return NULL; + } +- ++ ++ if (eor->shstrndx == 0) ++ { ++ *errmsg = "invalid ELF shstrndx == 0"; ++ *err = 0; ++ XDELETE (eor); ++ return NULL; ++ } ++ + return (void *) eor; + } + |