From: Antony Dovgal Date: Thu, 15 Dec 2005 22:14:25 +0000 (+0000) Subject: fix #35690 (pack() tries to allocate huge memory block when packing float values... X-Git-Tag: RELEASE_1_0_4~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90b95eeb2345f4bc2ede1072359d6fcebe3732c8;p=php fix #35690 (pack() tries to allocate huge memory block when packing float values to strings) --- diff --git a/ext/standard/pack.c b/ext/standard/pack.c index 80ef259356..4b9ac02798 100644 --- a/ext/standard/pack.c +++ b/ext/standard/pack.c @@ -184,6 +184,7 @@ PHP_FUNCTION(pack) } if (arg < 0) { + convert_to_string_ex(argv[currentarg]); arg = Z_STRLEN_PP(argv[currentarg]); }