summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2017-9955_3.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-9955_3.patch48
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_3.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_3.patch
new file mode 100644
index 0000000000..1b67c4e956
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_3.patch
@@ -0,0 +1,48 @@
1From 1f473e3d0ad285195934e6a077c7ed32afe66437 Mon Sep 17 00:00:00 2001
2From: "H.J. Lu" <hjl.tools@gmail.com>
3Date: Mon, 26 Jun 2017 15:47:16 -0700
4Subject: [PATCH] Add a missing line to
5 _bfd_generic_get_section_contents_in_window
6
7 PR binutils/21665
8 * libbfd.c (_bfd_generic_get_section_contents_in_window): Add
9 a missing line.
10
11Upstream-Status: Backport
12CVE: CVE-2017-9955 #3
13Signed-off-by: Armin Kuster <akuster@mvista.com>
14
15---
16 bfd/ChangeLog | 6 ++++++
17 bfd/libbfd.c | 1 +
18 2 files changed, 7 insertions(+)
19
20Index: git/bfd/libbfd.c
21===================================================================
22--- git.orig/bfd/libbfd.c
23+++ git/bfd/libbfd.c
24@@ -868,6 +868,7 @@ _bfd_generic_get_section_contents_in_win
25 else
26 sz = section->size;
27 filesz = bfd_get_file_size (abfd);
28+ if (filesz < 0)
29 {
30 /* This should never happen. */
31 abort ();
32Index: git/bfd/ChangeLog
33===================================================================
34--- git.orig/bfd/ChangeLog
35+++ git/bfd/ChangeLog
36@@ -1,6 +1,12 @@
37 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
38
39 PR binutils/21665
40+ * libbfd.c (_bfd_generic_get_section_contents_in_window): Add
41+ a missing line.
42+
43+2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
44+
45+ PR binutils/21665
46 * compress.c (bfd_get_full_section_contents): Don't check the
47 file size here.
48 * libbfd.c (_bfd_generic_get_section_contents): Check for and