com php-src: Merge branch 'PHP-7.3' into PHP-7.4: ext/opcache/z end_file_cache.c
| From: | Nikita Popov | Date: | Wed, 05 Aug 2020 13:18:03 +0000 |
| Subject: | com php-src: Merge branch 'PHP-7.3' into PHP-7.4: ext/opcache/z end_file_cache.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112575@lists.php.net to get a copy of this message | ||
Commit: 9d9fa32fe5b6c9da757edcb4395d534265520d5f
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 5 Aug 2020 15:18:03 +0200
Parents: a2604e628f3de605f1d2c735816afdd0045d18cc 12db8b90a74627bca7923343f6758d0b2ce61eac
Branches: PHP-7.4
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9d9fa32fe5b6c9da757edcb4395d534265520d5f
Log:
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3:
Fix iov_base pointer type for illumos
Changed paths:
MM ext/opcache/zend_file_cache.c
Diff:
diff --cc ext/opcache/zend_file_cache.c
index b46edcb065,8b6ebd9fe7..8edd70a256
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@@ -934,16 -869,8 +934,16 @@@ int zend_file_cache_script_store(zend_p
info.checksum = zend_adler32(ADLER32_INIT, buf, script->size);
info.checksum = zend_adler32(info.checksum, (unsigned char*)ZSTR_VAL((zend_string*)ZCG(mem)),
info.str_size);
+#if __has_feature(memory_sanitizer)
+ /* The buffer may contain uninitialized regions. However, the uninitialized parts will not be
+ * used when reading the cache. We should probably still try to get things fully initialized
+ * for reproducibility, but for now ignore this issue. */
+ __msan_unpoison(&info, sizeof(info));
+ __msan_unpoison(buf, script->size);
+#endif
+
#ifdef HAVE_SYS_UIO_H
- vec[0]..iov_base = &info;
+ vec[0].iov_base = (void *)&info;
vec[0].iov_len = sizeof(info);
vec[1].iov_base = buf;
vec[1].iov_len = script->size;