mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
MFH: fix #35690 (pack() tries to allocate huge memory block when packing float values to strings)
This commit is contained in:
parent
9417c070f6
commit
a91f9fb786
2
NEWS
2
NEWS
@ -26,6 +26,8 @@ PHP NEWS
|
||||
- Fixed many bugs in OCI8. (Tony)
|
||||
- Fixed crash and leak in mysqli when using 4.1.x client libraries and
|
||||
connecting to 5.x server. (Andrey)
|
||||
- Fixed bug #35690 (pack() tries to allocate huge memory block when packing
|
||||
float values to strings). (Tony)
|
||||
- Fixed bug #35655 (whitespace following end of heredoc is lost). (Ilia)
|
||||
- Fixed bug #35630 (strtotime() crashes on certain relative identifiers).
|
||||
(Ilia)
|
||||
|
@ -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