[pcre-dev] [Bug 2487] rspamd segfault with 10.34 (works with…

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2487] rspamd segfault with 10.34 (works with 10.32)
https://bugs.exim.org/show_bug.cgi?id=2487

--- Comment #2 from Andreas Hasenack <andreas@???> ---
Thanks for your reply!

Indeed, this fixed it:
diff --git a/src/pcre2_jit_compile.c b/src/pcre2_jit_compile.c
index f564127..34638ec 100644
--- a/src/pcre2_jit_compile.c
+++ b/src/pcre2_jit_compile.c
@@ -13742,14 +13742,14 @@ pcre2_jit_compile(pcre2_code *code, uint32_t options)
{
pcre2_real_code *re = (pcre2_real_code *)code;

+if (code == NULL)
+ return PCRE2_ERROR_NULL;
+
#ifdef SUPPORT_JIT
executable_functions *functions = (executable_functions *)re->executable_jit;
static int executable_allocator_is_working = 0;
#endif

-if (code == NULL)
- return PCRE2_ERROR_NULL;
-
if ((options & ~PUBLIC_JIT_COMPILE_OPTIONS) != 0)
return PCRE2_ERROR_JIT_BADOPTION;


Without the patch:
$ sudo rspamadm configtest                                                      
Segmentation fault


Updating the package with a build that has the patch:
$ sudo dpkg -i ../*.deb
(...)
$ sudo rspamadm configtest                                                      
syntax OK


--
You are receiving this mail because:
You are on the CC list for the bug.