[pcre-dev] [Bug 2076] New: pcre2_callout_enumerate() checks …

Inizio della pagina
Delete this message
Autore: admin
Data:  
To: pcre-dev
Oggetto: [pcre-dev] [Bug 2076] New: pcre2_callout_enumerate() checks re for NULL too late
https://bugs.exim.org/show_bug.cgi?id=2076

            Bug ID: 2076
           Summary: pcre2_callout_enumerate() checks re for NULL too late
           Product: PCRE
           Version: 10.23 (PCRE2)
          Hardware: x86
                OS: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: ppisar@???
                CC: pcre-dev@???


Created attachment 1005
--> https://bugs.exim.org/attachment.cgi?id=1005&action=edit
Fix

If SUPPORT_UNICODE is defined, re variable is dereferenced without checking re
for NULL:

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

if (re == NULL) return PCRE2_ERROR_NULL;


10.23 as well as SVN tip is affected. Fix is attached.

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