summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2016-05-05 15:13:54 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-17 20:53:36 +0100
commit93f29f536e3b105c9ba4cec540887190a3bfd04f (patch)
treeb1e395989a1b5eab572076282df8f5127b3d5872 /meta/recipes-devtools
parent5a1ac4ea59e2e0f1c175a9250c9aa9bd8c6c7d97 (diff)
downloadpoky-93f29f536e3b105c9ba4cec540887190a3bfd04f.tar.gz
gcc: Security fix CVE-2016-4489
(From OE-Core rev: 448e625c566d305e70321bdfbbaa39be34211704) Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
-rw-r--r--meta/recipes-devtools/gcc/gcc-5.3.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4489.patch56
2 files changed, 57 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-5.3.inc b/meta/recipes-devtools/gcc/gcc-5.3.inc
index e4185c2a44..421bb0c82e 100644
--- a/meta/recipes-devtools/gcc/gcc-5.3.inc
+++ b/meta/recipes-devtools/gcc/gcc-5.3.inc
@@ -90,6 +90,7 @@ SRC_URI = "\
90 file://0058-fdebug-prefix-map-support-to-remap-relative-path.patch \ 90 file://0058-fdebug-prefix-map-support-to-remap-relative-path.patch \
91 file://0059-libgcc-use-ldflags.patch \ 91 file://0059-libgcc-use-ldflags.patch \
92 file://CVE-2016-4488.patch \ 92 file://CVE-2016-4488.patch \
93 file://CVE-2016-4489.patch \
93" 94"
94 95
95BACKPORTS = "" 96BACKPORTS = ""
diff --git a/meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4489.patch b/meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4489.patch
new file mode 100644
index 0000000000..68a0f85400
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4489.patch
@@ -0,0 +1,56 @@
1From 053ec2207203a194d2ae82e2f164009aad3f14d2 Mon Sep 17 00:00:00 2001
2From: bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
3Date: Fri, 8 Apr 2016 12:06:59 +0000
4Subject: [PATCH] =?UTF-8?q?Handle=20an=20overflow=20case=20(PR70498,=20pat?=
5 =?UTF-8?q?ch=20by=20Marcel=20B=C3=B6hme).?=
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10 PR c++/70498
11 * cplus-dem.c (gnu_special): Handle case where consume_count returns
12 -1.
13
14
15
16git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234828 138bc75d-0d04-0410-961f-82ee72b054a4
17
18Upstream-Status: Backport
19CVE: CVE-2016-4489
20
21Signed-off-by: Armin Kuster <akuster@mvista.com>
22---
23 libiberty/ChangeLog | 6 ++++++
24 libiberty/cplus-dem.c | 5 +++++
25 2 files changed, 11 insertions(+)
26
27Index: gcc-5.3.0/libiberty/ChangeLog
28===================================================================
29--- gcc-5.3.0.orig/libiberty/ChangeLog
30+++ gcc-5.3.0/libiberty/ChangeLog
31@@ -1,3 +1,9 @@
32+2016-04-08 Marcel Böhme <boehme.marcel@gmail.com>
33+
34+ PR c++/70498
35+ * cplus-dem.c (gnu_special): Handle case where consume_count returns
36+ -1.
37+
38 2016-03-31 Mikhail Maltsev <maltsevm@gmail.com>
39 Marcel Bohme boehme.marcel@gmail.com
40
41Index: gcc-5.3.0/libiberty/cplus-dem.c
42===================================================================
43--- gcc-5.3.0.orig/libiberty/cplus-dem.c
44+++ gcc-5.3.0/libiberty/cplus-dem.c
45@@ -3001,6 +3001,11 @@ gnu_special (struct work_stuff *work, co
46 success = 1;
47 break;
48 }
49+ else if (n == -1)
50+ {
51+ success = 0;
52+ break;
53+ }
54 }
55 else
56 {