Skip to content

Commit 4bbe55b

Browse files
committed
Fixed missaligned access
1 parent 5df461b commit 4bbe55b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,9 @@ static zend_always_inline void zend_jit_trace_add_op_guard(zend_ssa
422422
static zend_always_inline size_t zend_jit_trace_frame_size(const zend_op_array *op_array)
423423
{
424424
if (op_array && op_array->type == ZEND_USER_FUNCTION) {
425-
return offsetof(zend_jit_trace_stack_frame, stack) + ZEND_MM_ALIGNED_SIZE((op_array->last_var + op_array->T) * sizeof(zend_jit_trace_stack));
425+
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)));
426426
} else {
427-
return offsetof(zend_jit_trace_stack_frame, stack);
427+
return ZEND_MM_ALIGNED_SIZE(offsetof(zend_jit_trace_stack_frame, stack));
428428
}
429429
}
430430

0 commit comments

Comments
 (0)