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

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [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.