From: Ilia Alshanetsky Date: Sun, 28 Dec 2003 19:31:48 +0000 (+0000) Subject: Boundry check. X-Git-Tag: php-4.3.5RC1~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f899afbfcaa7954d6e7c784f24201166a4e345bd;p=php Boundry check. --- diff --git a/ext/standard/file.c b/ext/standard/file.c index 939b565834..ec53d34e77 100644 --- a/ext/standard/file.c +++ b/ext/standard/file.c @@ -2340,7 +2340,7 @@ enclosure: goto enclosure; } } else { - while (e < re && *(e - 1) == enclosure) { + while (e < re && e > s && *(e - 1) == enclosure) { e--; }