Skip to content

Commit f90c735

Browse files
committed
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.
1 parent aaedbde commit f90c735

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/opcache/jit/zend_jit_trace.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4609,7 +4609,6 @@ static const void *zend_jit_trace_exit_to_vm(uint32_t trace_num, uint32_t exit_n
46094609
dasm_init(&dasm_state, DASM_MAXSECTION);
46104610
dasm_setupglobal(&dasm_state, dasm_labels, zend_lb_MAX);
46114611
dasm_setup(&dasm_state, dasm_actions);
4612-
dasm_growpc(&dasm_state, 0);
46134612

46144613
zend_jit_align_func(&dasm_state);
46154614

0 commit comments

Comments
 (0)