From: Dmitry Stogov Date: Fri, 17 Jul 2020 10:03:35 +0000 (+0300) Subject: Side exit on overflow X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83478d4fe0e186b4ce2505b44f73a38896dd5d71;p=php Side exit on overflow --- diff --git a/ext/opcache/jit/zend_jit_trace.c b/ext/opcache/jit/zend_jit_trace.c index b73177ee58..f04bfc6442 100644 --- a/ext/opcache/jit/zend_jit_trace.c +++ b/ext/opcache/jit/zend_jit_trace.c @@ -883,6 +883,11 @@ static int is_checked_guard(const zend_ssa *tssa, const zend_op **ssa_opcodes, u || opline->opcode == ZEND_POST_DEC || opline->opcode == ZEND_POST_INC) { return 1; + } else if (opline->opcode == ZEND_ASSIGN_OP + && (opline->extended_value == ZEND_ADD + || opline->extended_value == ZEND_SUB + || opline->extended_value == ZEND_MUL)) { + return 1; } } if (tssa->ops[idx].result_def == var) {