mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
Fixed bug #70529 Session read causes "String is not zero-terminated" error
This commit is contained in:
parent
7680194a93
commit
2f7cc862d7
4
NEWS
4
NEWS
@ -6,6 +6,10 @@ PHP NEWS
|
||||
. Fixed bug #70481 (Memory leak in auto_global_copy_ctor() in ZTS build).
|
||||
(Laruence)
|
||||
|
||||
- Session:
|
||||
. Fixed bug #70529 (Session read causes "String is not zero-terminated" error).
|
||||
(Yasuo)
|
||||
|
||||
|
||||
17 Sep 2015, PHP 7.0.0 RC 3
|
||||
|
||||
|
@ -519,6 +519,7 @@ PS_READ_FUNC(files)
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0';
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user