cvs: php-src(PHP_4_3) /ext/standard file.c
| From: | Ilia Alshanetsky | Date: | Sun, 28 Dec 2003 19:31:49 +0000 |
| Subject: | cvs: php-src(PHP_4_3) /ext/standard file.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-25464@lists.php.net to get a copy of this message | ||
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--;
}