sesser Tue Mar 1 08:53:35 2005 EDT Modified files: (Branch: PHP_4_3) /php-src/ext/standard image.c Log: MFH http://cvs.php.net/diff.php/php-src/ext/standard/image.c?r1=1.72.2.16&r2=1.72.2.17&ty=u Index: php-src/ext/standard/image.c diff -u php-src/ext/standard/image.c:1.72.2.16 php-src/ext/standard/image.c:1.72.2.17 --- php-src/ext/standard/image.c:1.72.2.16 Thu Feb 24 15:54:18 2005 +++ php-src/ext/standard/image.c Tue Mar 1 08:53:35 2005 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: image.c,v 1.72.2.16 2005/02/24 20:54:18 helly Exp $ */ +/* $Id: image.c,v 1.72.2.17 2005/03/01 13:53:35 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