mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
MFH: fix #40998 (long session array keys are truncated)
This commit is contained in:
parent
febad95f3f
commit
39f9184fa6
1
NEWS
1
NEWS
@ -37,6 +37,7 @@ PHP NEWS
|
||||
- Fixed zend_llist_remove_tail (Michael Wallner, Dmitry)
|
||||
- Fixed a thread safety issue in gd gif read code (Nuno, Roman Nemecek)
|
||||
- Fixed CVE-2007-1001, GD wbmp used with invalid image size (Pierre)
|
||||
- Fixed bug #40998 (long session array keys are truncated). (Tony)
|
||||
- Fixed bug #40921 (php_default_post_reader crashes when post_max_size is
|
||||
exceeded). (trickie at gmail dot com, Ilia)
|
||||
- Fixed bug #40915 (addcslashes unexpected behavior with binary input). (Tony)
|
||||
|
@ -523,7 +523,7 @@ PS_SERIALIZER_ENCODE_FUNC(php)
|
||||
PHP_VAR_SERIALIZE_INIT(var_hash);
|
||||
|
||||
PS_ENCODE_LOOP(
|
||||
smart_str_appendl(&buf, key, (unsigned char) key_length);
|
||||
smart_str_appendl(&buf, key, key_length);
|
||||
if (memchr(key, PS_DELIMITER, key_length)) {
|
||||
PHP_VAR_SERIALIZE_DESTROY(var_hash);
|
||||
smart_str_free(&buf);
|
||||
|
Loading…
Reference in New Issue
Block a user