iliaa Thu Sep 11 01:07:39 2003 EDT Modified files: /php-src/main/streams streams.c Log: Fixed bug #25316 (Possible infinite loop inside _php_stream_write()). Index: php-src/main/streams/streams.c diff -u php-src/main/streams/streams.c:1.34 php-src/main/streams/streams.c:1.35 --- php-src/main/streams/streams.c:1.34 Tue Sep 9 20:58:12 2003 +++ php-src/main/streams/streams.c Thu Sep 11 01:07:26 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: streams.c,v 1.34 2003/09/10 00:58:12 iliaa Exp $ */ +/* $Id: streams.c,v 1.35 2003/09/11 05:07:26 iliaa Exp $ */ #define _GNU_SOURCE #include "php.h" @@ -867,7 +867,8 @@ justwrote = stream->ops->write(stream, buf, towrite TSRMLS_CC); - if (justwrote > 0) { + /* convert justwrote to an integer, since normally it is unsigned */ + if ((int)justwrote > 0) { buf += justwrote; count -= justwrote; didwrite += justwrote;
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php