iliaa           Sun Dec 28 14:31:49 2003 EDT

  Modified files:              (Branch: PHP_4_3)
    /php-src/ext/standard       file.c 
  Log:
  Boundry check.
  
  
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.279.2.49 php-src/ext/standard/file.c:1.279.2.50
--- php-src/ext/standard/file.c:1.279.2.49      Tue Dec 23 06:06:42 2003
+++ php-src/ext/standard/file.c Sun Dec 28 14:31:48 2003
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.279.2.49 2003/12/23 11:06:42 moriyoshi Exp $ */
+/* $Id: file.c,v 1.279.2.50 2003/12/28 19:31:48 iliaa Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -2340,7 +2340,7 @@
                                goto enclosure;
                        }
                } else {
-                       while (e < re && *(e - 1) == enclosure) {
+                       while (e < re && e > s && *(e - 1) == enclosure) {
                                e--;
                        }
 

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

Reply via email to