From 99ee73e6a94c847cee7130928cc3b6acddece904 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Tue, 28 Jul 2020 23:31:58 +0300 Subject: [PATCH] Fixed incorrect reuse of exit_point --- ext/opcache/jit/zend_jit_trace.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index d894b50f18..6ef493e3ed 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -174,7 +174,8 @@ static uint32_t zend_jit_trace_get_exit_point(const zend_op *from_opline, const && memcmp(t->stack_map + t->exit_info[i].stack_offset, stack, stack_size * sizeof(zend_jit_trace_stack)) == 0)) { stack_offset = t->exit_info[i].stack_offset; if (t->exit_info[i].opline == to_opline - && t->exit_info[i].flags == flags) { + && t->exit_info[i].flags == flags + && t->exit_info[i].stack_size == stack_size) { return i; } } -- 2.50.1