diff options
Diffstat (limited to 'meta/recipes-support/libpcre/libpcre2/CVE-2022-1586-regression.patch')
-rw-r--r-- | meta/recipes-support/libpcre/libpcre2/CVE-2022-1586-regression.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-support/libpcre/libpcre2/CVE-2022-1586-regression.patch b/meta/recipes-support/libpcre/libpcre2/CVE-2022-1586-regression.patch new file mode 100644 index 0000000000..42ee417fe7 --- /dev/null +++ b/meta/recipes-support/libpcre/libpcre2/CVE-2022-1586-regression.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 5d1e62b0155292b994aa1c96d4ed8ce4346ef4c2 Mon Sep 17 00:00:00 2001 | ||
2 | From: Zoltan Herczeg <hzmester@freemail.hu> | ||
3 | Date: Thu, 24 Mar 2022 05:34:42 +0000 | ||
4 | Subject: [PATCH] Fix incorrect value reading in JIT. | ||
5 | |||
6 | CVE: CVE-2022-1586 | ||
7 | Upstream-Status: Backport [https://github.com/PCRE2Project/pcre2/commit/d4fa336fbcc3] | ||
8 | |||
9 | (cherry picked from commit d4fa336fbcc388f89095b184ba6d99422cfc676c) | ||
10 | Signed-off-by: Shinu Chandran <shinucha@cisco.com> | ||
11 | --- | ||
12 | src/pcre2_jit_compile.c | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c | ||
16 | index 493c96d..fa57942 100644 | ||
17 | --- a/src/pcre2_jit_compile.c | ||
18 | +++ b/src/pcre2_jit_compile.c | ||
19 | @@ -7188,7 +7188,7 @@ while (*cc != XCL_END) | ||
20 | { | ||
21 | SLJIT_ASSERT(*cc == XCL_PROP || *cc == XCL_NOTPROP); | ||
22 | cc++; | ||
23 | - if (*cc == PT_CLIST && *cc == XCL_PROP) | ||
24 | + if (*cc == PT_CLIST && cc[-1] == XCL_PROP) | ||
25 | { | ||
26 | other_cases = PRIV(ucd_caseless_sets) + cc[1]; | ||
27 | while (*other_cases != NOTACHAR) | ||
28 | -- | ||
29 | 2.25.1 | ||
30 | |||