Fixed bug #70529 Session read causes "String is not zero-terminated" error

This commit is contained in:
Yasuo Ohgaki 2015-09-19 11:24:01 +09:00
parent 7680194a93
commit 2f7cc862d7
2 changed files with 5 additions and 0 deletions

4
NEWS
View File

@ -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

View File

@ -519,6 +519,7 @@ PS_READ_FUNC(files)
return FAILURE;
}
ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0';
return SUCCESS;
}