From f90c73595747e50ec66bbc3e96cc01f96d650237 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 22 Jul 2020 11:10:42 +0200 Subject: [PATCH] Drop no-op dasm_growpc() call This doesn't do anything, as maxpc=0 is passed. However, ubsan complains about the memset of a null pointer, so avoid it. --- ext/opcache/jit/zend_jit_trace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index 06d7422ae5..7a52c78d76 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -4609,7 +4609,6 @@ static const void *zend_jit_trace_exit_to_vm(uint32_t trace_num, uint32_t exit_n dasm_init(&dasm_state, DASM_MAXSECTION); dasm_setupglobal(&dasm_state, dasm_labels, zend_lb_MAX); dasm_setup(&dasm_state, dasm_actions); - dasm_growpc(&dasm_state, 0); zend_jit_align_func(&dasm_state); -- 2.50.1