mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
fix #35690 (pack() tries to allocate huge memory block when packing float values to strings)
This commit is contained in:
parent
72ae77a1d8
commit
90b95eeb23
@ -184,6 +184,7 @@ PHP_FUNCTION(pack)
|
||||
}
|
||||
|
||||
if (arg < 0) {
|
||||
convert_to_string_ex(argv[currentarg]);
|
||||
arg = Z_STRLEN_PP(argv[currentarg]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user