summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/binutils/binutils/CVE-2018-18605.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/binutils/binutils/CVE-2018-18605.patch')
-rw-r--r--meta/recipes-devtools/binutils/binutils/CVE-2018-18605.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/recipes-devtools/binutils/binutils/CVE-2018-18605.patch b/meta/recipes-devtools/binutils/binutils/CVE-2018-18605.patch
deleted file mode 100644
index a117f95df1..0000000000
--- a/meta/recipes-devtools/binutils/binutils/CVE-2018-18605.patch
+++ /dev/null
@@ -1,29 +0,0 @@
1From ab419ddbb2cdd17ca83618990f2cacf904ce1d61 Mon Sep 17 00:00:00 2001
2From: Alan Modra <amodra@gmail.com>
3Date: Tue, 23 Oct 2018 18:29:24 +1030
4Subject: [PATCH] PR23804, buffer overflow in sec_merge_hash_lookup
5
6 PR 23804
7 * merge.c (_bfd_add_merge_section): Don't attempt to merge
8 sections where size is not a multiple of entsize.
9
10Upstream-Status: Backport
11CVE: CVE-2018-18605
12Signed-off-by: Zhixiong Chi <zhixiong.chi@windriver.com>
13---
14 bfd/ChangeLog | 6 ++++++
15 bfd/merge.c | 3 +++
16 2 files changed, 9 insertions(+)
17
18--- a/bfd/merge.c
19+++ b/bfd/merge.c
20@@ -376,6 +376,9 @@ _bfd_add_merge_section (bfd *abfd, void
21 || sec->entsize == 0)
22 return TRUE;
23
24+ if (sec->size % sec->entsize != 0)
25+ return TRUE;
26+
27 if ((sec->flags & SEC_RELOC) != 0)
28 {
29 /* We aren't prepared to handle relocations in merged sections. */