diff options
| author | Armin Kuster <akuster@mvista.com> | 2016-05-06 00:11:55 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-17 14:43:30 +0100 |
| commit | 23f00321e97abebbfe1298691487f5bb0dbcf2b4 (patch) | |
| tree | 8c6b8cea1cd7b9166af9f561f0941643bd081b65 /meta/recipes-devtools | |
| parent | 02321b6d63844851741c4515c8d697c88ccacff4 (diff) | |
| download | poky-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/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.3.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4489.patch | 56 |
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 | ||
| 96 | BACKPORTS = "" | 97 | BACKPORTS = "" |
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 @@ | |||
| 1 | From 053ec2207203a194d2ae82e2f164009aad3f14d2 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
| 3 | Date: Fri, 8 Apr 2016 12:06:59 +0000 | ||
| 4 | Subject: [PATCH] =?UTF-8?q?Handle=20an=20overflow=20case=20(PR70498,=20pat?= | ||
| 5 | =?UTF-8?q?ch=20by=20Marcel=20B=C3=B6hme).?= | ||
| 6 | MIME-Version: 1.0 | ||
| 7 | Content-Type: text/plain; charset=UTF-8 | ||
| 8 | Content-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 | |||
| 16 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234828 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
| 17 | |||
| 18 | Upstream-Status: Backport | ||
| 19 | CVE: CVE-2016-4489 | ||
| 20 | |||
| 21 | Signed-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 | |||
| 27 | Index: 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 | |||
| 41 | Index: 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 | { | ||
