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;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to