com php-src: Merge branch 'PHP-5.6' into PHP-7.0: NEWS ext/session/mod_files.c
| From: | Christoph Michael Becker | Date: | Fri, 16 Sep 2016 21:43:18 +0000 |
| Subject: | com php-src: Merge branch 'PHP-5.6' into PHP-7.0: NEWS ext/session/mod_files.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-94574@lists.php.net to get a copy of this message | ||
Commit: 48cf8dd9c32926775798a11ee0c0fc81d8bf3c7a
Author: Christoph M. Becker <cmbecker69@gmx.de> Fri, 16 Sep 2016 23:42:48 +0200
Parents: 0e76cafaf18dbbb6af609b2e765fe68fd30b8002 66826730702d3ed3d6d45320ad1276977e67bb9e
Branches: PHP-7.0 PHP-7.1 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=48cf8dd9c32926775798a11ee0c0fc81d8bf3c7a
Log:
Merge branch 'PHP-5.6' into PHP-7.0
Changed paths:
MM NEWS
MM ext/session/mod_files.c
Diff:
diff --cc NEWS
index 42d30ab,21fcc66..a60224c
--- a/NEWS
+++ b/NEWS
@@@ -54,14 -42,11 +54,16 @@@ PH
- Session:
. Fixed bug #68015 (Session does not report invalid uid for files save handler).
(Yasuo)
+ .. Fixed bug #73100 (session_destroy null dereference in ps_files_path_create).
+ (cmb)
-- Stream:
- . Fixed bug #73069 (readfile() mangles files larger than 2G). (Laruence)
+- SOAP:
+ . Fixed bug #71711 (Soap Server Member variables reference bug). (Nikita)
+ . Fixed bug #71996 (Using references in arrays doesn't work like expected).
+ (Nikita)
+
+- SQLite3:
+ . Updated bundled SQLite3 to 3.14.2. (cmb)
- Zip:
. Fixed bug #70752 (Depacking with wrong password leaves 0 length files).
diff --cc ext/session/mod_files.c
index ed32f35,5c69ae3..b33f07e
--- a/ext/session/mod_files.c
+++ b/ext/session/mod_files.c
@@@ -111,10 -76,10 +111,10 @@@ static char *ps_files_path_create(char
size_t key_len;
const char *p;
int i;
- int n;
+ size_t n;
key_len = strlen(key);
- if (key_len <= data->dirdepth ||
+ if (!data || key_len <= data->dirdepth ||
buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 +
sizeof(FILE_PREFIX))) {
return NULL;
}