From 90b95eeb2345f4bc2ede1072359d6fcebe3732c8 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 15 Dec 2005 22:14:25 +0000 Subject: [PATCH] fix #35690 (pack() tries to allocate huge memory block when packing float values to strings) --- ext/standard/pack.c | 1 + 1 file changed, 1 insertion(+) 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]); } -- 2.40.0