summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorArmin Kuster <akuster@mvista.com>2016-05-06 00:11:55 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-05-17 14:43:30 +0100
commit23f00321e97abebbfe1298691487f5bb0dbcf2b4 (patch)
tree8c6b8cea1cd7b9166af9f561f0941643bd081b65 /meta
parent02321b6d63844851741c4515c8d697c88ccacff4 (diff)
downloadpoky-23f00321e97abebbfe1298691487f5bb0dbcf2b4.tar.gz
gcc: Security fix CVE-2016-4489
(From OE-Core rev: 84a1642f89801648728c61d3af42926b95533e07) Signed-off-by: Armin Kuster <akuster@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 c75d07ebce..11287e4f94 100644
--- a/meta/recipes-devtools/gcc/gcc-5.3.inc
+++ b/meta/recipes-devtools/gcc/gcc-5.3.inc
@@ -91,6 +91,7 @@ SRC_URI = "\
91 file://0059-libgcc-use-ldflags.patch \ 91 file://0059-libgcc-use-ldflags.patch \
92 file://0060-remove-prototypes-cfns.patch \ 92 file://0060-remove-prototypes-cfns.patch \
93 file://CVE-2016-4488.patch \ 93 file://CVE-2016-4488.patch \
94 file://CVE-2016-4489.patch \
94" 95"
95 96
96BACKPORTS = "" 97BACKPORTS = ""
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 {