diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-23 09:06:26 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-12-23 09:06:26 +0100 |
commit | 4bf699209e269be666dac7ad4444a003bdbf7d59 (patch) | |
tree | 0706692fb7c1aa2fdb7abeb4c42dfd4ca68dd81e /thirdparty/pcre2/src/pcre2_compile.c | |
parent | a79a5999a62477e6e98b1ba5121033041f9e68e4 (diff) | |
parent | 62c3e4ab9c87689ff0b7d27350bde176981daf1b (diff) |
Merge pull request #70447 from akien-mga/pcre2-10.42
pcre2: Update to upstream version 10.42
Diffstat (limited to 'thirdparty/pcre2/src/pcre2_compile.c')
-rw-r--r-- | thirdparty/pcre2/src/pcre2_compile.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/thirdparty/pcre2/src/pcre2_compile.c b/thirdparty/pcre2/src/pcre2_compile.c index de259c9c40..edf7e82e6e 100644 --- a/thirdparty/pcre2/src/pcre2_compile.c +++ b/thirdparty/pcre2/src/pcre2_compile.c @@ -1266,8 +1266,10 @@ PCRE2_SIZE* ref_count; if (code != NULL) { +#ifdef SUPPORT_JIT if (code->executable_jit != NULL) PRIV(jit_free)(code->executable_jit, &code->memctl); +#endif if ((code->flags & PCRE2_DEREF_TABLES) != 0) { @@ -2687,7 +2689,7 @@ if ((options & PCRE2_EXTENDED_MORE) != 0) options |= PCRE2_EXTENDED; while (ptr < ptrend) { int prev_expect_cond_assert; - uint32_t min_repeat, max_repeat; + uint32_t min_repeat = 0, max_repeat = 0; uint32_t set, unset, *optset; uint32_t terminator; uint32_t prev_meta_quantifier; @@ -8552,7 +8554,7 @@ do { op == OP_SCBRA || op == OP_SCBRAPOS) { int n = GET2(scode, 1+LINK_SIZE); - int new_map = bracket_map | ((n < 32)? (1u << n) : 1); + unsigned int new_map = bracket_map | ((n < 32)? (1u << n) : 1); if (!is_startline(scode, new_map, cb, atomcount, inassert)) return FALSE; } @@ -10620,4 +10622,10 @@ re = NULL; goto EXIT; } +/* These #undefs are here to enable unity builds with CMake. */ + +#undef NLBLOCK /* Block containing newline information */ +#undef PSSTART /* Field containing processed string start */ +#undef PSEND /* Field containing processed string end */ + /* End of pcre2_compile.c */ |