mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
fix #35690 (pack() tries to allocate huge memory block when packing float values to strings)
This commit is contained in:
@@ -184,6 +184,7 @@ PHP_FUNCTION(pack)
|
||||
}
|
||||
|
||||
if (arg < 0) {
|
||||
convert_to_string_ex(argv[currentarg]);
|
||||
arg = Z_STRLEN_PP(argv[currentarg]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user