summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_4.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2017-9955_4.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2017-9955_4.patch50
1 files changed, 50 insertions, 0 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_4.patch b/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_4.patch
new file mode 100644
index 0000000000..d6b6a14254
--- /dev/null
+++ b/meta/recipes-devtools/binutils/binutils/CVE-2017-9955_4.patch
@@ -0,0 +1,50 @@
1commit ab27f80c5dceaa23c4ba7f62c0d5d22a5d5dd7a1
2Author: Pedro Alves <palves@redhat.com>
3Date: Tue Jun 27 00:21:25 2017 +0100
4
5 Fix GDB regressions caused by previous bfd_get_section_contents changes
6
7 Ref: https://sourceware.org/ml/binutils/2017-06/msg00343.html
8
9 bfd/ChangeLog:
10 2017-06-26 Pedro Alves <palves@redhat.com>
11
12 PR binutils/21665
13 * libbfd.c (_bfd_generic_get_section_contents): Add "count", not
14 "sz".
15
16Upstream-Status: Backport
17
18CVE: CVE-2017-9955
19Signed-off-by: Thiruvadi Rajaraman <trajaraman@mvista.com>
20
21Index: git/bfd/libbfd.c
22===================================================================
23--- git.orig/bfd/libbfd.c 2017-09-21 18:01:58.079078554 +0530
24+++ git/bfd/libbfd.c 2017-09-21 18:01:58.063078433 +0530
25@@ -810,7 +810,7 @@
26 }
27 if (offset + count < count
28 || offset + count > sz
29- || (section->filepos + offset + sz) > (bfd_size_type) filesz)
30+ || (section->filepos + offset + count) > (bfd_size_type) filesz)
31 {
32 bfd_set_error (bfd_error_invalid_operation);
33 return FALSE;
34Index: git/bfd/ChangeLog
35===================================================================
36--- git.orig/bfd/ChangeLog 2017-09-21 18:01:32.258884464 +0530
37+++ git/bfd/ChangeLog 2017-09-21 18:03:42.955872017 +0530
38@@ -11,6 +11,12 @@
39 of end pointer.
40 (evax_bfd_print_emh): Check for invalid string lengths.
41
42+2017-06-26 Pedro Alves <palves@redhat.com>
43+
44+ PR binutils/21665
45+ * libbfd.c (_bfd_generic_get_section_contents): Add "count", not
46+ "sz".
47+
48 2017-06-26 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR binutils/21665