cvs: php-src /ext/standard pack.c
| From: | Antony Dovgal | Date: | Thu, 15 Dec 2005 22:14:25 +0000 |
| Subject: | cvs: php-src /ext/standard pack.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-35946@lists.php.net to get a copy of this message | ||
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 <cschneid@relog.ch> |
+----------------------------------------------------------------------+
*/
-/* $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]);
}