Skip to content

Commit 411b6fb

Browse files
committed
Fixed codegeneration for PRE_DEC
Fixes oss-fuzz #63713
1 parent e95ba52 commit 411b6fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_ir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4538,7 +4538,7 @@ static int zend_jit_inc_dec(zend_jit_ctx *jit, const zend_op *opline, uint32_t o
45384538
stack = JIT_G(current_frame)->stack;
45394539
if (opline->result_type != IS_UNUSED) {
45404540
old_res_info = STACK_INFO(stack, EX_VAR_TO_NUM(opline->result.var));
4541-
if (opline->opcode == ZEND_PRE_INC) {
4541+
if (opline->opcode == ZEND_PRE_INC || opline->opcode == ZEND_PRE_DEC) {
45424542
SET_STACK_TYPE(stack, EX_VAR_TO_NUM(opline->result.var), IS_LONG, 0);
45434543
}
45444544
}

0 commit comments

Comments
 (0)