From: Dmitry Stogov Date: Mon, 9 Nov 2020 08:50:26 +0000 (+0300) Subject: Fixed missaligned access X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4bbe55b25078a1b5176faaf207aecb69be9811c8;p=php Fixed missaligned access --- diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 14826ee69b..c13ba1d485 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)); } }