diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/binutils/binutils-2.29.1.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/binutils/binutils/CVE-2017-14930.patch | 53 |
2 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils-2.29.1.inc b/meta/recipes-devtools/binutils/binutils-2.29.1.inc index 692828575e..9e02325662 100644 --- a/meta/recipes-devtools/binutils/binutils-2.29.1.inc +++ b/meta/recipes-devtools/binutils/binutils-2.29.1.inc | |||
@@ -36,6 +36,7 @@ SRC_URI = "\ | |||
36 | file://0014-Detect-64-bit-MIPS-targets.patch \ | 36 | file://0014-Detect-64-bit-MIPS-targets.patch \ |
37 | file://0015-sync-with-OE-libtool-changes.patch \ | 37 | file://0015-sync-with-OE-libtool-changes.patch \ |
38 | file://CVE-2017-17124.patch \ | 38 | file://CVE-2017-17124.patch \ |
39 | file://CVE-2017-14930.patch \ | ||
39 | " | 40 | " |
40 | S = "${WORKDIR}/git" | 41 | S = "${WORKDIR}/git" |
41 | 42 | ||
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-14930.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-14930.patch new file mode 100644 index 0000000000..bbd267a959 --- /dev/null +++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-14930.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From a26a013f22a19e2c16729e64f40ef8a7dfcc086e Mon Sep 17 00:00:00 2001 | ||
2 | From: Alan Modra <amodra@gmail.com> | ||
3 | Date: Sun, 24 Sep 2017 17:10:14 +0930 | ||
4 | Subject: [PATCH] PR22191, memory leak in dwarf2.c | ||
5 | |||
6 | table->sequences is a linked list before it is replaced by a bfd_alloc | ||
7 | array in sort_line_sequences. | ||
8 | |||
9 | PR 22191 | ||
10 | * dwarf2.c (decode_line_info): Properly free line sequences on error. | ||
11 | |||
12 | Upstream-Status: Backport | ||
13 | Affects: <= 2.29.1 | ||
14 | CVE: CVE-2017-14930 | ||
15 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
16 | |||
17 | --- | ||
18 | bfd/ChangeLog | 5 +++++ | ||
19 | bfd/dwarf2.c | 8 ++++++-- | ||
20 | 2 files changed, 11 insertions(+), 2 deletions(-) | ||
21 | |||
22 | Index: git/bfd/dwarf2.c | ||
23 | =================================================================== | ||
24 | --- git.orig/bfd/dwarf2.c | ||
25 | +++ git/bfd/dwarf2.c | ||
26 | @@ -2473,8 +2473,12 @@ decode_line_info (struct comp_unit *unit | ||
27 | return table; | ||
28 | |||
29 | fail: | ||
30 | - if (table->sequences != NULL) | ||
31 | - free (table->sequences); | ||
32 | + while (table->sequences != NULL) | ||
33 | + { | ||
34 | + struct line_sequence* seq = table->sequences; | ||
35 | + table->sequences = table->sequences->prev_sequence; | ||
36 | + free (seq); | ||
37 | + } | ||
38 | if (table->files != NULL) | ||
39 | free (table->files); | ||
40 | if (table->dirs != NULL) | ||
41 | Index: git/bfd/ChangeLog | ||
42 | =================================================================== | ||
43 | --- git.orig/bfd/ChangeLog | ||
44 | +++ git/bfd/ChangeLog | ||
45 | @@ -1,3 +1,8 @@ | ||
46 | +2017-09-24 Alan Modra <amodra@gmail.com> | ||
47 | + | ||
48 | + PR 22191 | ||
49 | + * dwarf2.c (decode_line_info): Properly free line sequences on error. | ||
50 | + | ||
51 | 2017-11-28 Nick Clifton <nickc@redhat.com> | ||
52 | |||
53 | PR 22507 | ||