[pcre-dev] coverity report

Pàgina inicial
Delete this message
Autor: Nuno Lopes
Data:  
A: pcre-dev
Assumpte: [pcre-dev] coverity report
Hi,

Coverity now also analyses the PCRE code (after a few requests from me ;)
I have access to the data through the PHP project, because we bundle PCRE.
For now only one bug was found, and it seems real. I provide details below.

So, it is time for the current and future maintainers of the PCRE code to
ask for access to the Coverity reports
(http://scan.coverity.com/newproj.html)

Nuno


-----------
pcre_compile.c:

5096  if (erroroffset == NULL)
5097    {
5098    errorcode = ERR16;
5099    goto PCRE_EARLY_ERROR_RETURN;
5100    }


(...)

5321    (pcre_free)(re);
5322    PCRE_EARLY_ERROR_RETURN:


Event var_deref_op: Variable "erroroffset" tracked as NULL was dereferenced.
Also see events: [var_compare_op]

5323    *erroroffset = ptr - (const uschar *)pattern;