1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Fix GH-17017: OOB read when starting up file cache (GH-17023)

`zend_system_id` is not zero-terminated; as such we must constrain the
number of characters we print.
This commit is contained in:
Christoph M. Becker
2024-12-03 12:13:53 +01:00
committed by GitHub
parent bcb7f9b018
commit 85f7e5477a

View File

@@ -3331,7 +3331,7 @@ static zend_result accel_post_startup(void)
} }
if ( ZCG(accel_directives).file_cache ) { if ( ZCG(accel_directives).file_cache ) {
zend_accel_error(ACCEL_LOG_INFO, "opcache.file_cache running with PHP build ID: %s", zend_system_id); zend_accel_error(ACCEL_LOG_INFO, "opcache.file_cache running with PHP build ID: %.32s", zend_system_id);
zend_stat_t buf = {0}; zend_stat_t buf = {0};