sesser Tue Mar 1 08:53:19 2005 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/standard image.c Log: MFH http://cvs.php.net/diff.php/php-src/ext/standard/image.c?r1=1.98.2.6&r2=1.98.2.7&ty=u Index: php-src/ext/standard/image.c diff -u php-src/ext/standard/image.c:1.98.2.6 php-src/ext/standard/image.c:1.98.2.7 --- php-src/ext/standard/image.c:1.98.2.6 Tue Mar 1 05:13:15 2005 +++ php-src/ext/standard/image.c Tue Mar 1 08:53:19 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.98.2.6 2005/03/01 10:13:15 helly Exp $ */ +/* $Id: image.c,v 1.98.2.7 2005/03/01 13:53:19 sesser Exp $ */ #include "php.h" #include <stdio.h> @@ -711,6 +711,11 @@ break; } + /* Stop if this was the last box */ + if ((int)box_length <= 0) { + break; + } + /* Skip over LBox (Which includes both TBox and LBox itself */ if (php_stream_seek(stream, box_length - 8, SEEK_CUR)) { break;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php