[pcre-dev] [Bug 2094] PCRE 8.40 with JIT mode enabled genera…

Página superior
Eliminar este mensaje
Autor: admin
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 2094] PCRE 8.40 with JIT mode enabled generates invalid memory read warnings
https://bugs.exim.org/show_bug.cgi?id=2094

Zoltan Herczeg <hzmester@???> changed:

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


--- Comment #1 from Zoltan Herczeg <hzmester@???> ---
I think this is a known side effect of the SSE2 optimization in PCRE-JIT. The
optimized algorithm reads aligned 16 byte data packets which might cross the
boundary of the input (subject) buffer, and valgrind reports this as an error.
However this is a valid operation, since the read is aligned, so it can never
cause a memory read error. Of course the algorithm ignores data outside of the
input buffer boundaries.

To confirm this please change the following line in pcre_jit_compile.c:

if (sljit_x86_is_sse2_available())

to:

if (false)

and check whether the error disappears.

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