]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: regex: Properly handle PCRE2 lib compiled without JIT support
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Sep 2022 17:34:00 +0000 (19:34 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 1 Sep 2022 17:34:46 +0000 (19:34 +0200)
commitf348ecd67ae64ba9b2a10e9efe84e9091af42bb2
tree6749289bfaccc19c1c0974eca5171c85d330ab90
parent32872db6050cf39bf8ba80e40a2b6c4ee184a8e6
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.
src/regex.c