Browse Source

[core] ignore pcre2 "bad JIT option" warning

ignore pcre2 bad JIT option warning for use of PCRE2_JIT_COMPLETE
flag with pcre2_jit_compile() returning PCRE2_ERROR_JIT_BADOPTION

x-ref:
  "pcre2 - Probable user knowledge bug, but suggestions will be welcome"
  https://redmine.lighttpd.net/boards/2/topics/10202
master
Glenn Strauss 5 months ago
parent
commit
f58e8dda1b
  1. 2
      src/data_config.c
  2. 2
      src/keyvalue.c

2
src/data_config.c

@ -99,7 +99,7 @@ int data_config_pcre_compile(data_config * const dc, const int pcre_jit, log_err
if (pcre_jit) {
errcode = pcre2_jit_compile(dc->code, PCRE2_JIT_COMPLETE);
if (0 != errcode) {
if (0 != errcode && errcode != PCRE2_ERROR_JIT_BADOPTION) {
pcre2_get_error_message(errcode, errbuf, sizeof(errbuf));
log_error(errh, __FILE__, __LINE__,
"pcre2_jit_compile: %s, regex: %s",

2
src/keyvalue.c

@ -85,7 +85,7 @@ int pcre_keyvalue_buffer_append(log_error_st *errh, pcre_keyvalue_buffer *kvb, c
if (pcre_jit) {
errcode = pcre2_jit_compile(kv->code, PCRE2_JIT_COMPLETE);
if (0 != errcode) {
if (0 != errcode && errcode != PCRE2_ERROR_JIT_BADOPTION) {
pcre2_get_error_message(errcode, errbuf, sizeof(errbuf));
log_error(errh, __FILE__, __LINE__,
"pcre2_jit_compile: %s, regex: %s", (char *)errbuf, key->ptr);

Loading…
Cancel
Save