From: Nikita Popov Date: Wed, 22 Jul 2020 09:10:42 +0000 (+0200) Subject: Drop no-op dasm_growpc() call X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f90c73595747e50ec66bbc3e96cc01f96d650237;p=php 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. --- 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);