tony2001 Mon Jun 26 22:53:42 2006 UTC
Modified files:
/php-src/ext/zlib zlib.c
Log:
MFB: don't try to inflate empty strings
http://cvs.php.net/viewvc.cgi/php-src/ext/zlib/zlib.c?r1=1.198&r2=1.199&diff_format=u
Index: php-src/ext/zlib/zlib.c
diff -u php-src/ext/zlib/zlib.c:1.198 php-src/ext/zlib/zlib.c:1.199
--- php-src/ext/zlib/zlib.c:1.198 Tue Jun 13 13:12:20 2006
+++ php-src/ext/zlib/zlib.c Mon Jun 26 22:53:42 2006
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zlib.c,v 1.198 2006/06/13 13:12:20 dmitry Exp $ */
+/* $Id: zlib.c,v 1.199 2006/06/26 22:53:42 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -528,6 +528,10 @@
return;
}
+ if (!data_len) {
+ RETURN_FALSE;
+ }
+
if (limit < 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "length (%ld) must
be greater or equal zero", limit);
RETURN_FALSE;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php