From df737fec483913ca217377142bf7d58c6ef8f7c3 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 27 Sep 2022 10:09:49 -0400 Subject: [PATCH] import pcre2-10.40-2.el9 --- .gitignore | 2 +- .pcre2.metadata | 2 +- ...le-character-repetition-issues-in-JI.patch | 74 ------------------ SOURCES/pcre2-10.37.tar.bz2.sig | Bin 310 -> 0 bytes SOURCES/pcre2-10.40.tar.bz2.sig | Bin 0 -> 310 bytes SPECS/pcre2.spec | 25 ++++-- 6 files changed, 21 insertions(+), 82 deletions(-) delete mode 100644 SOURCES/pcre2-10.37-Fix-invalid-single-character-repetition-issues-in-JI.patch delete mode 100644 SOURCES/pcre2-10.37.tar.bz2.sig create mode 100644 SOURCES/pcre2-10.40.tar.bz2.sig diff --git a/.gitignore b/.gitignore index d0e2aba..b2d8efc 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/pcre2-10.37.tar.bz2 +SOURCES/pcre2-10.40.tar.bz2 diff --git a/.pcre2.metadata b/.pcre2.metadata index d56092b..a6d1c32 100644 --- a/.pcre2.metadata +++ b/.pcre2.metadata @@ -1 +1 @@ -4fcf6e0b4426b341de40295d2aa70b850ee8748d SOURCES/pcre2-10.37.tar.bz2 +5a433f92b29083d0d8ccd4ec56e3afbe1fa09863 SOURCES/pcre2-10.40.tar.bz2 diff --git a/SOURCES/pcre2-10.37-Fix-invalid-single-character-repetition-issues-in-JI.patch b/SOURCES/pcre2-10.37-Fix-invalid-single-character-repetition-issues-in-JI.patch deleted file mode 100644 index f84d577..0000000 --- a/SOURCES/pcre2-10.37-Fix-invalid-single-character-repetition-issues-in-JI.patch +++ /dev/null @@ -1,74 +0,0 @@ -From 68b518ae703afcc672071e2bf65e4600bb2f2bfb Mon Sep 17 00:00:00 2001 -From: zherczeg -Date: Fri, 4 Jun 2021 12:55:49 +0000 -Subject: [PATCH] Fix invalid single character repetition issues in JIT. - -git-svn-id: svn://vcs.pcre.org/pcre2/code/trunk@1315 6239d852-aaf2-0410-a92c-79f79f948069 ---- - src/pcre2_jit_compile.c | 10 ++++++---- - src/pcre2_jit_test.c | 1 + - -diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c -index ae0d9a9..a3f7ebe 100644 ---- a/src/pcre2_jit_compile.c -+++ b/src/pcre2_jit_compile.c -@@ -1236,15 +1236,16 @@ start: - - return: current number of iterators enhanced with fast fail - */ --static int detect_early_fail(compiler_common *common, PCRE2_SPTR cc, int *private_data_start, sljit_s32 depth, int start) -+static int detect_early_fail(compiler_common *common, PCRE2_SPTR cc, int *private_data_start, -+ sljit_s32 depth, int start, BOOL fast_forward_allowed) - { - PCRE2_SPTR begin = cc; - PCRE2_SPTR next_alt; - PCRE2_SPTR end; - PCRE2_SPTR accelerated_start; -+BOOL prev_fast_forward_allowed; - int result = 0; - int count; --BOOL fast_forward_allowed = TRUE; - - SLJIT_ASSERT(*cc == OP_ONCE || *cc == OP_BRA || *cc == OP_CBRA); - SLJIT_ASSERT(*cc != OP_CBRA || common->optimized_cbracket[GET2(cc, 1 + LINK_SIZE)] != 0); -@@ -1476,6 +1477,7 @@ do - case OP_CBRA: - end = cc + GET(cc, 1); - -+ prev_fast_forward_allowed = fast_forward_allowed; - fast_forward_allowed = FALSE; - if (depth >= 4) - break; -@@ -1484,7 +1486,7 @@ do - if (*end != OP_KET || (*cc == OP_CBRA && common->optimized_cbracket[GET2(cc, 1 + LINK_SIZE)] == 0)) - break; - -- count = detect_early_fail(common, cc, private_data_start, depth + 1, count); -+ count = detect_early_fail(common, cc, private_data_start, depth + 1, count, prev_fast_forward_allowed); - - if (PRIVATE_DATA(cc) != 0) - common->private_data_ptrs[begin - common->start] = 1; -@@ -13657,7 +13659,7 @@ memset(common->private_data_ptrs, 0, total_length * sizeof(sljit_s32)); - private_data_size = common->cbra_ptr + (re->top_bracket + 1) * sizeof(sljit_sw); - - if ((re->overall_options & PCRE2_ANCHORED) == 0 && (re->overall_options & PCRE2_NO_START_OPTIMIZE) == 0 && !common->has_skip_in_assert_back) -- detect_early_fail(common, common->start, &private_data_size, 0, 0); -+ detect_early_fail(common, common->start, &private_data_size, 0, 0, TRUE); - - set_private_data_ptrs(common, &private_data_size, ccend); - -diff --git a/src/pcre2_jit_test.c b/src/pcre2_jit_test.c -index d935887..f748016 100644 ---- a/src/pcre2_jit_test.c -+++ b/src/pcre2_jit_test.c -@@ -351,6 +351,7 @@ static struct regression_test_case regression_test_cases[] = { - { MU, A, 0, 0, ".[ab]*a", "xxa" }, - { MU, A, 0, 0, ".[ab]?.", "xx" }, - { MU, A, 0, 0, "_[ab]+_*a", "_aa" }, -+ { MU, A, 0, 0, "#(A+)#\\d+", "#A#A#0" }, - - /* Bracket repeats with limit. */ - { MU, A, 0, 0, "(?:(ab){2}){5}M", "abababababababababababM" }, --- -2.31.1 - diff --git a/SOURCES/pcre2-10.37.tar.bz2.sig b/SOURCES/pcre2-10.37.tar.bz2.sig deleted file mode 100644 index 7812ae6ecad8e0c5ae3a198249328d4a59d5e61e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 310 zcmV-60m=S}0W$;u0SEvc79j*h_Kj4#;y<$kn?~iAX5fVT4@1}m0${FNiU0};5SM1) zg!>Oe*vI|{|3Pt9PKVltkn&&n_<2;-J>4mJ!&f=nUJgtOZH*mWmd2*iQr<8ACJ+yF zl@>3n6U3W(-LdrTq)Ge?z3kF$2O5n|%NFXqtla)P;`3uo?KW`RR7-U?lZyM+eyI>u zDggmHv4~YdJW!ZB)oNQ73xN3NZ0}x}NAkgld>D$UCh*gFOqBO9?m@VA0vzB{-v)D- zjBcpAjc3ZQDI@J99lnkJ#;tu5i?2DYK_>`A%hykvpUKOe*j-@<|9((**C(6IycsKQ+>6cU5Iww~ao&A)dg8n!e%&Tj;?o<;y)*WojhI}& zQkDs4AQ(D1rH>z@gOJ1@I|3ORxK%|iqrAL>JtvflB!*o=crM*Im1qlHDzMG`H7pl5 zp+pGoZpw8jDSbsh4$Vcl^i<0LzSWCbwUt6@3lET0W#uB+AFNoz4JuWvj?UJ#RV>dY&gZoY>!{cJ<+2Mr<5v^euv6Y* I>E - 10.40-2 +- Explicitly require uft subpackages in tools subpackage + +* Fri May 13 2022 Lukas Javorsky - 10.40-1 +- Rebase to the 10.40 +- Resolves multiple Out-of-bounds read errors + +* Fri May 13 2022 Lukas Javorsky - 10.39-1 +- Rebase to the 10.39 + +* Fri May 13 2022 Lukas Javorsky - 10.38-1 +- Rebase to the 10.38 +- Patch 1 upstreamed + * Mon Aug 09 2021 Mohan Boddu - 10.37-3.1 - Rebuilt for IMA sigs, glibc 2.34, aarch64 flags Related: rhbz#1991688