]> code.ossystems Code Review - openembedded-core.git/commitdiff
libpcre2: fix CVE-2019-20454
authorLee Chee Yang <chee.yang.lee@intel.com>
Wed, 11 Mar 2020 06:47:36 +0000 (14:47 +0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Sun, 15 Mar 2020 23:04:05 +0000 (07:04 +0800)
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-support/libpcre/libpcre2/CVE-2019-20454.patch [new file with mode: 0644]
meta/recipes-support/libpcre/libpcre2_10.33.bb

diff --git a/meta/recipes-support/libpcre/libpcre2/CVE-2019-20454.patch b/meta/recipes-support/libpcre/libpcre2/CVE-2019-20454.patch
new file mode 100644 (file)
index 0000000..51f95a7
--- /dev/null
@@ -0,0 +1,19 @@
+Upstream-Status: Backport [https://vcs.pcre.org/pcre2/code/trunk/src/pcre2_jit_compile.c?r1=1092&r2=1091&pathrev=1092]
+CVE: CVE-2020-8002
+Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
+
+--- pcre2-10.30/src/pcre2_jit_compile.c        2019/05/13 16:26:17     1091
++++ pcre2-10.30/src/pcre2_jit_compile.c        2019/05/13 16:38:18     1092
+@@ -8571,7 +8571,10 @@
+ PCRE2_SPTR bptr;
+ uint32_t c;
+-GETCHARINC(c, cc);
++/* Patch by PH */
++/* GETCHARINC(c, cc); */
++
++c = *cc++;
+ #if PCRE2_CODE_UNIT_WIDTH == 32
+ if (c >= 0x110000)
+   return NULL;
+
index 50b26753b4f9d70b4a5408c6701695120d083a87..1020df99b85405f4748ff87948333b52f38896e7 100644 (file)
@@ -12,6 +12,7 @@ LIC_FILES_CHKSUM = "file://LICENCE;md5=b1588d3bb4cb0e1f5a597d908f8c5b37"
 
 SRC_URI = "https://ftp.pcre.org/pub/pcre/pcre2-${PV}.tar.bz2 \
            file://pcre-cross.patch \
+           file://CVE-2019-20454.patch \
 "
 
 SRC_URI[md5sum] = "80b355f2dce909a2e2424f5c79eddb44"