iliaa Thu Oct 12 01:05:25 2006 UTC Modified files: /php-src/regex regcomp.c Log: MFB: Fixed potential use of un-initialized var http://cvs.php.net/viewvc.cgi/php-src/regex/regcomp.c?r1=1.6&r2=1.7&diff_format=u Index: php-src/regex/regcomp.c diff -u php-src/regex/regcomp.c:1.6 php-src/regex/regcomp.c:1.7 --- php-src/regex/regcomp.c:1.6 Tue Sep 30 00:26:03 2003 +++ php-src/regex/regcomp.c Thu Oct 12 01:05:25 2006 @@ -1553,6 +1553,11 @@ if (g->mlen == 0) /* there isn't one */ return; + if (!start) { + g->mlen = 0; + return; + } + /* turn it into a character string */ g->must = malloc((size_t)g->mlen + 1); if (g->must == NULL) { /* argh; just forget it */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php