commit | f348ecd67ae64ba9b2a10e9efe84e9091af42bb2 | [log] [tgz] |
---|---|---|
author | Christopher Faulet <cfaulet@haproxy.com> | Thu Sep 01 19:34:00 2022 +0200 |
committer | Christopher Faulet <cfaulet@haproxy.com> | Thu Sep 01 19:34:46 2022 +0200 |
tree | 6749289bfaccc19c1c0974eca5171c85d330ab90 | |
parent | 32872db6050cf39bf8ba80e40a2b6c4ee184a8e6 [diff] |
BUG/MINOR: regex: Properly handle PCRE2 lib compiled without JIT support The PCRE2 JIT support is buggy. If HAProxy is compiled with USE_PCRE2_JIT option while the PCRE2 library is compiled without the JIT support, any matching will fail because pcre2_jit_compile() return value is not properly handled. We must fall back on pcre2_match() if PCRE2_ERROR_JIT_BADOPTION error is returned. This patch should fix the issue #1848. It must be backported as far as 2.4.