com php-src: Fixed bug #70529 Session read causes "String is not zero-terminated" error: NEWS ext/session/mod_files.c

From: Date: Sat, 19 Sep 2015 02:26:14 +0000
Subject: com php-src: Fixed bug #70529 Session read causes "String is not zero-terminated" error: NEWS ext/session/mod_files.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89072@lists.php.net to get a copy of this message
Commit: 2f7cc862d763bcd3ca09f1164df8cdec929b75b9 Author: Yasuo Ohgaki <yohgaki@php.net> Sat, 19 Sep 2015 11:24:01 +0900 Parents: 7680194a930165f50194a48e324d11001aef3465 Branches: PHP-7.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2f7cc862d763bcd3ca09f1164df8cdec929b75b9 Log: Fixed bug #70529 Session read causes "String is not zero-terminated" error Bugs: https://bugs.php.net/70529 Changed paths: M NEWS M ext/session/mod_files.c Diff: diff --git a/NEWS b/NEWS index fb99eb0..57b7a73 100644 --- a/NEWS +++ b/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 diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index f525620..8301b73 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -519,6 +519,7 @@ PS_READ_FUNC(files) return FAILURE; } + ZSTR_VAL(*val)[ZSTR_LEN(*val)] = '\0'; return SUCCESS; }

« previous php.cvs (#89072) next »