tony2001 Thu Dec 15 22:14:25 2005 EDT Modified files: /php-src/ext/standard pack.c Log: fix #35690 (pack() tries to allocate huge memory block when packing float values to strings) http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/pack.c?r1=1.57&r2=1.58&diff_format=u Index: php-src/ext/standard/pack.c diff -u php-src/ext/standard/pack.c:1.57 php-src/ext/standard/pack.c:1.58 --- php-src/ext/standard/pack.c:1.57 Wed Aug 3 14:08:09 2005 +++ php-src/ext/standard/pack.c Thu Dec 15 22:14:25 2005 @@ -15,7 +15,7 @@ | Author: Chris Schneider <[EMAIL PROTECTED]> | +----------------------------------------------------------------------+ */ -/* $Id: pack.c,v 1.57 2005/08/03 14:08:09 sniper Exp $ */ +/* $Id: pack.c,v 1.58 2005/12/15 22:14:25 tony2001 Exp $ */ #include "php.h" @@ -184,6 +184,7 @@ } if (arg < 0) { + convert_to_string_ex(argv[currentarg]); arg = Z_STRLEN_PP(argv[currentarg]); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php