com php-src: Fixed missaligned access: ext/opcache/jit/zend_j it_trace.c

From: Date: Mon, 09 Nov 2020 08:50:26 +0000
Subject: com php-src: Fixed missaligned access: ext/opcache/jit/zend_j it_trace.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-114085@lists.php.net to get a copy of this message
Commit: 4bbe55b25078a1b5176faaf207aecb69be9811c8 Author: Dmitry Stogov <dmitry@zend.com> Mon, 9 Nov 2020 11:50:26 +0300 Parents: 5df461bc91a5b6856a31ffeda717ee1fc988ce5e Branches: PHP-8.0 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4bbe55b25078a1b5176faaf207aecb69be9811c8 Log: Fixed missaligned access Changed paths: M ext/opcache/jit/zend_jit_trace.c Diff: diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 14826ee69bb..c13ba1d4854 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -422,9 +422,9 @@ static zend_always_inline void zend_jit_trace_add_op_guard(zend_ssa static zend_always_inline size_t zend_jit_trace_frame_size(const zend_op_array *op_array) { if (op_array && op_array->type == ZEND_USER_FUNCTION) { - return offsetof(zend_jit_trace_stack_frame, stack) + ZEND_MM_ALIGNED_SIZE((op_array->last_var + op_array->T) * sizeof(zend_jit_trace_stack)); + return ZEND_MM_ALIGNED_SIZE(offsetof(zend_jit_trace_stack_frame, stack) + ZEND_MM_ALIGNED_SIZE((op_array->last_var + op_array->T) * sizeof(zend_jit_trace_stack))); } else { - return offsetof(zend_jit_trace_stack_frame, stack); + return ZEND_MM_ALIGNED_SIZE(offsetof(zend_jit_trace_stack_frame, stack)); } }

« previous php.cvs (#114085) next »