summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2019-14250.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2019-14250.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2019-14250.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2019-14250.patch b/meta/recipes-devtools/binutils/binutils/CVE-2019-14250.patch
deleted file mode 100644
index c915a832b0..0000000000
--- a/meta/recipes-devtools/binutils/binutils/CVE-2019-14250.patch
+++ /dev/null
@@ -1,33 +0,0 @@
1From df78be05daf4eb07f60f50ec1080cb979af32ec0 Mon Sep 17 00:00:00 2001
2From: marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Tue, 23 Jul 2019 07:33:32 +0000
4Subject: [PATCH] libiberty: Check zero value shstrndx in simple-object-elf.c
5
6git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@273718 138bc75d-0d04-0410-961f-82ee72b054a4
7
8CVE: CVE-2019-14250
9Upstream-Status: Backport [from gcc: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=273718]
10[Removed Changelog entry]
11Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
12---
13diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c
14index 502388991a08..bdee963634d6 100644
15--- a/libiberty/simple-object-elf.c
16+++ b/libiberty/simple-object-elf.c
17@@ -548,7 +548,15 @@ simple_object_elf_match (unsigned char header[SIMPLE_OBJECT_MATCH_HEADER_LEN],
18 XDELETE (eor);
19 return NULL;
20 }
21-
22+
23+ if (eor->shstrndx == 0)
24+ {
25+ *errmsg = "invalid ELF shstrndx == 0";
26+ *err = 0;
27+ XDELETE (eor);
28+ return NULL;
29+ }
30+
31 return (void *) eor;
32 }
33