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

Pàgina inicial
Delete this message
Autor: admin
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 2487] rspamd segfault with 10.34 (works with 10.32)
https://bugs.exim.org/show_bug.cgi?id=2487

Zoltan Herczeg <hzmester@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hzmester@???


--- Comment #1 from Zoltan Herczeg <hzmester@???> ---
Hi,

src/pcre2_jit_compile.c:13746
        re = 0x0
        functions = <optimized out>
        executable_allocator_is_working = 1


It looks like you call the jit compiler with a NULL regex (probably after a
failed compilation).

I checked the code:

#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;

It looks like the "code==NULL" check happens after re->executable_jit is read.
This is clearly wrong. Could you reverse these two statements and try what
happens?

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