diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-20 17:53:10 +0200 |
---|---|---|
committer | Christoph M. Becker <cmbecker69@gmx.de> | 2019-06-20 17:58:32 +0200 |
commit | fcd6f2de60e1fc593fa301f3af42b871624946d9 (patch) | |
tree | de1b4bc743e5c0bb58d0077035cb66577d1b7dff /ext/opcache/zend_file_cache.c | |
parent | d8202bf9177cdbcb9b87586580dbcd6bb94f0de4 (diff) | |
download | php-git-fcd6f2de60e1fc593fa301f3af42b871624946d9.tar.gz |
Fix #78189: file cache strips last character of uname hash
We must not forget to increase `len` by one to cater to the directory
separator.
Diffstat (limited to 'ext/opcache/zend_file_cache.c')
-rw-r--r-- | ext/opcache/zend_file_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c index 20f21d6a83..39de839e47 100644 --- a/ext/opcache/zend_file_cache.c +++ b/ext/opcache/zend_file_cache.c @@ -775,7 +775,7 @@ static char *zend_file_cache_get_bin_file_path(zend_string *script_path) memcpy(filename, ZCG(accel_directives).file_cache, len); filename[len] = '\\'; memcpy(filename + 1 + len, md5uname, 32); - len += 32; + len += 1 + 32; filename[len] = '\\'; memcpy(filename + len + 1, ZCG(system_id), 32); |