[pcre-dev] [Bug 640] New: Possible NULL pointer dereference …

Pàgina inicial
Delete this message
Autor: Marcio Buss
Data:  
A: pcre-dev
Assumpte: [pcre-dev] [Bug 640] New: Possible NULL pointer dereference on pcre_compile, line 5323
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=640
           Summary: Possible NULL pointer dereference on pcre_compile, line
                    5323
           Product: PCRE
           Version: 7.0
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: marciobuss@???
                CC: pcre-dev@???



There's a potential null pointer dereference at "pcre_compile" line 5323
as follows:

Assume the "if" condition at line 5096 evaluates to true:

if (erroroffset == NULL) >>>>> true means ptr is null <<<<<
{
errorcode = ERR16;
goto PCRE_EARLY_ERROR_RETURN;
}

.....

then some hundred lines later,

PCRE_EARLY_ERROR_RETURN:
*erroroffset = ptr - (const uschar *)pattern;

The goto above jumps right into a null ptr dereference.


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email