[pcre-dev] [Bug 2088] pointer was utilized before it was ver…

Página superior
Eliminar este mensaje
Autor: admin
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 2088] pointer was utilized before it was verified against nullptr: pcre2_pattern_info.c
https://bugs.exim.org/show_bug.cgi?id=2088

--- Comment #1 from egoroff <egoroff@???> ---
You should do something like this:

#ifdef SUPPORT_UNICODE
BOOL utf;
#endif

if (re == NULL) return PCRE2_ERROR_NULL;

#ifdef SUPPORT_UNICODE
utf = (re->overall_options & PCRE2_UTF) != 0;
#endif

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