cvs: php-src(PHP_5_2) /ext/standard string.c

From: Date: Tue, 13 Feb 2007 23:55:20 +0000
Subject: cvs: php-src(PHP_5_2) /ext/standard string.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-43056@lists.php.net to get a copy of this message
iliaa Tue Feb 13 23:55:20 2007 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/standard string.c Log: Make sure p is not pointing to the start of the buffer http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.445.2.14.2.40&r2=1.445.2.14.2.41&diff_format=u Index: php-src/ext/standard/string.c diff -u php-src/ext/standard/string.c:1.445.2.14.2.40 php-src/ext/standard/string.c:1.445.2.14.2.41 --- php-src/ext/standard/string.c:1.445.2.14.2.40 Tue Feb 13 02:16:22 2007 +++ php-src/ext/standard/string.c Tue Feb 13 23:55:20 2007 @@ -18,7 +18,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: string.c,v 1.445.2.14.2.40 2007/02/13 02:16:22 iliaa Exp $ */ +/* $Id: string.c,v 1.445.2.14.2.41 2007/02/13 23:55:20 iliaa Exp $ */ /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */ @@ -4263,7 +4263,7 @@ tp = ((tp-tbuf) >= PHP_TAG_BUF_SIZE ? tbuf: tp); *(tp++) = c; } - if (*(p-1) != '\\') { + if (p != buf && *(p-1) != '\\') { in_q = !in_q; } break;

« previous php.cvs (#43056) next »