]> granicus.if.org Git - php/commitdiff
Side exit on overflow
authorDmitry Stogov <dmitry@zend.com>
Fri, 17 Jul 2020 10:03:35 +0000 (13:03 +0300)
committerDmitry Stogov <dmitry@zend.com>
Fri, 17 Jul 2020 10:03:35 +0000 (13:03 +0300)
ext/opcache/jit/zend_jit_trace.c

index b73177ee5858bbfaeaeb7fc58a0e9bdd400d46a7..f04bfc644262a115d120cbe254d3a6fca2a761b8 100644 (file)
@@ -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) {