diff options
author | Armin Kuster <akuster@mvista.com> | 2016-05-06 00:11:54 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-05-17 14:43:30 +0100 |
commit | 02321b6d63844851741c4515c8d697c88ccacff4 (patch) | |
tree | b60f046432fb7ec21b8f2d007bb848e0b739f730 /meta/recipes-devtools/gcc/gcc-5.3 | |
parent | e3eaef7f220fc77802b71cdbc44a1f3f8ce7b057 (diff) | |
download | poky-02321b6d63844851741c4515c8d697c88ccacff4.tar.gz |
gcc: Security fix CVE-2016-4488
(From OE-Core rev: 4d8096d77139e31f80b4cb54b6b747bbf19bb959)
Signed-off-by: Armin Kuster <akuster@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-5.3')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4488.patch | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4488.patch b/meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4488.patch new file mode 100644 index 0000000000..30e0ffeace --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-5.3/CVE-2016-4488.patch | |||
@@ -0,0 +1,73 @@ | |||
1 | From be3004dc350a820a5b0320b34bd05673ba534058 Mon Sep 17 00:00:00 2001 | ||
2 | From: law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | ||
3 | Date: Thu, 31 Mar 2016 17:20:53 +0000 | ||
4 | Subject: [PATCH] * cplus-dem.c (squangle_mop_up): Zero bsize/ksize | ||
5 | after freeing btypevec/ktypevec. * testsuite/demangle-expected: Add | ||
6 | coverage tests. | ||
7 | |||
8 | git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@234645 138bc75d-0d04-0410-961f-82ee72b054a4 | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | CVE: CVE-2016-4488 | ||
12 | |||
13 | patched ChangeLog and demangle-expected as patch is from tip. | ||
14 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
15 | |||
16 | |||
17 | --- | ||
18 | libiberty/ChangeLog | 7 +++++++ | ||
19 | libiberty/cplus-dem.c | 2 ++ | ||
20 | libiberty/testsuite/demangle-expected | 10 ++++++++++ | ||
21 | 3 files changed, 19 insertions(+) | ||
22 | |||
23 | Index: gcc-5.3.0/libiberty/cplus-dem.c | ||
24 | =================================================================== | ||
25 | --- gcc-5.3.0.orig/libiberty/cplus-dem.c | ||
26 | +++ gcc-5.3.0/libiberty/cplus-dem.c | ||
27 | @@ -1237,11 +1237,13 @@ squangle_mop_up (struct work_stuff *work | ||
28 | { | ||
29 | free ((char *) work -> btypevec); | ||
30 | work->btypevec = NULL; | ||
31 | + work->bsize = 0; | ||
32 | } | ||
33 | if (work -> ktypevec != NULL) | ||
34 | { | ||
35 | free ((char *) work -> ktypevec); | ||
36 | work->ktypevec = NULL; | ||
37 | + work->ksize = 0; | ||
38 | } | ||
39 | } | ||
40 | |||
41 | Index: gcc-5.3.0/libiberty/testsuite/demangle-expected | ||
42 | =================================================================== | ||
43 | --- gcc-5.3.0.orig/libiberty/testsuite/demangle-expected | ||
44 | +++ gcc-5.3.0/libiberty/testsuite/demangle-expected | ||
45 | @@ -4356,3 +4356,13 @@ _QueueNotification_QueueController__$4PP | ||
46 | --format=gnu-v3 | ||
47 | _Z1fSsB3fooS_ | ||
48 | f(std::string[abi:foo], std::string[abi:foo]) | ||
49 | +# | ||
50 | +# Tests a use-after-free problem | ||
51 | + | ||
52 | +_Q.__0 | ||
53 | +::Q.(void) | ||
54 | +# | ||
55 | +# Tests a use-after-free problem | ||
56 | + | ||
57 | +_Q10-__9cafebabe. | ||
58 | +cafebabe.::-(void) | ||
59 | Index: gcc-5.3.0/libiberty/ChangeLog | ||
60 | =================================================================== | ||
61 | --- gcc-5.3.0.orig/libiberty/ChangeLog | ||
62 | +++ gcc-5.3.0/libiberty/ChangeLog | ||
63 | @@ -1,3 +1,10 @@ | ||
64 | +2016-03-31 Mikhail Maltsev <maltsevm@gmail.com> | ||
65 | + Marcel Bohme boehme.marcel@gmail.com | ||
66 | + | ||
67 | + * cplus-dem.c (squangle_mop_up): Zero bsize/ksize after freeing | ||
68 | + btypevec/ktypevec. | ||
69 | + * testsuite/demangle-expected: Add coverage tests. | ||
70 | + | ||
71 | 2015-12-04 Release Manager | ||
72 | |||
73 | * GCC 5.3.0 released. | ||