summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongxu Jia <hongxu.jia@windriver.com>2018-04-24 15:37:51 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-06-15 17:56:52 +0100
commitfe958e8864b6c619b3ea19e70d7168974f090128 (patch)
tree1d7f1c7efca924322deace2ee888e3ccd84eab24
parent66e1c58a5b583e807a3449859eb2e0ff44fd916d (diff)
downloadpoky-fe958e8864b6c619b3ea19e70d7168974f090128.tar.gz
perl: fix CVE-2017-12837
https://perl5.git.perl.org/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5 (From OE-Core rev: bd53256e165f5bb59a28d77a466d71fce39080fa) (From OE-Core rev: d3a785ea11caffe2537fd83f2b9d13f1b64adab9) Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/perl/perl/CVE-2017-12837.patch32
-rw-r--r--meta/recipes-devtools/perl/perl_5.24.1.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl/CVE-2017-12837.patch b/meta/recipes-devtools/perl/perl/CVE-2017-12837.patch
new file mode 100644
index 0000000000..0b59fcda3e
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/CVE-2017-12837.patch
@@ -0,0 +1,32 @@
1From 73d7247ecab863ef26b5687a37ccc75d6144ad0f Mon Sep 17 00:00:00 2001
2From: Karl Williamson <khw@cpan.org>
3Date: Tue, 17 Oct 2017 13:49:14 +0800
4Subject: [PATCH] fix CVE-2017-12837
5
6Signed-off-by: Karl Williamson <khw@cpan.org>
7Signed-off-by: Steve Hay <steve.m.hay@googlemail.com>
8
9CVE: CVE-2017-12837
10Upstream-Status: Backport
11https://perl5.git.perl.org/perl.git/commitdiff/96c83ed78aeea1a0496dd2b2d935869a822dc8a5
12
13Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
14---
15 regcomp.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/regcomp.c b/regcomp.c
19index 5498d14..31ec383 100644
20--- a/regcomp.c
21+++ b/regcomp.c
22@@ -13021,6 +13021,7 @@ S_regatom(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth)
23 goto loopdone;
24 }
25 p = RExC_parse;
26+ RExC_parse = parse_start;
27 if (ender > 0xff) {
28 REQUIRE_UTF8(flagp);
29 }
30--
311.8.3.1
32
diff --git a/meta/recipes-devtools/perl/perl_5.24.1.bb b/meta/recipes-devtools/perl/perl_5.24.1.bb
index 243422fcfb..ac78dda4fe 100644
--- a/meta/recipes-devtools/perl/perl_5.24.1.bb
+++ b/meta/recipes-devtools/perl/perl_5.24.1.bb
@@ -67,6 +67,7 @@ SRC_URI += " \
67 file://perl-test-customized.patch \ 67 file://perl-test-customized.patch \
68 file://perl-5.26.1-guard_old_libcrypt_fix.patch \ 68 file://perl-5.26.1-guard_old_libcrypt_fix.patch \
69 file://CVE-2017-12883.patch \ 69 file://CVE-2017-12883.patch \
70 file://CVE-2017-12837.patch \
70" 71"
71 72
72# Fix test case issues 73# Fix test case issues