summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2017-9041_1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2017-9041_1.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-9041_1.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9041_1.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9041_1.patch
new file mode 100644
index 0000000000..857cd4af91
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9041_1.patch
@@ -0,0 +1,51 @@
1From 919383ac718c2a3187ee2a9ad659daa22da26258 Mon Sep 17 00:00:00 2001
2From: "Maciej W. Rozycki" <macro@imgtec.com>
3Date: Wed, 12 Apr 2017 00:02:13 +0100
4Subject: [PATCH] MIPS/readelf: Remove extraneous null GOT data check
5
6Null data is handled gracefully throughout in MIPS GOT processing, with
7addresses printed normally and unavailable data shown as `<unknown>' by
8`print_mips_got_entry', and special processing code for GOT[1] doing an
9explicit check. Remove an unwanted null GOT data check then, introduced
10with commit 592458412fb2 in the course of addressing PR binutils/12855.
11
12 binutils/
13 * readelf.c (process_mips_specific): Remove null GOT data check.
14
15Upstream-Status: Backport
16CVE: CVE-2017-9041 patch #1
17VER: <= 2.28
18Signed-off-by: Armin Kuster <akuster@mvista.com>
19
20---
21 binutils/ChangeLog | 4 ++++
22 binutils/readelf.c | 3 +--
23 2 files changed, 5 insertions(+), 2 deletions(-)
24
25Index: git/binutils/readelf.c
26===================================================================
27--- git.orig/binutils/readelf.c
28+++ git/binutils/readelf.c
29@@ -14995,8 +14995,8 @@ process_mips_specific (FILE * file)
30 data = (unsigned char *) get_data (NULL, file, offset,
31 global_end - pltgot, 1,
32 _("Global Offset Table data"));
33- if (data == NULL)
34- return 0;
35+
36+ /* PR 12855: Null data is handled gracefully throughout. */
37 data_end = data + (global_end - pltgot);
38
39 printf (_("\nPrimary GOT:\n"));
40Index: git/bfd/ChangeLog
41===================================================================
42--- git.orig/bfd/ChangeLog
43+++ git/bfd/ChangeLog
44@@ -1,3 +1,7 @@
45+2017-04-25 Maciej W. Rozycki <macro@imgtec.com>
46+
47+ * readelf.c (process_mips_specific): Remove null GOT data check.
48+
49 2017-04-13 Nick Clifton <nickc@redhat.com>
50
51 PR binutils/21379