com php-src: Side exit on overflow: ext/opcache/jit/zend_jit _trace.c

From: Date: Fri, 17 Jul 2020 10:03:35 +0000
Subject: com php-src: Side exit on overflow: ext/opcache/jit/zend_jit _trace.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-112202@lists.php.net to get a copy of this message
Commit: 83478d4fe0e186b4ce2505b44f73a38896dd5d71 Author: Dmitry Stogov <dmitry@zend.com> Fri, 17 Jul 2020 13:03:35 +0300 Parents: 1cba736470fbe40dffb611c1b351f729f2c469a3 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=83478d4fe0e186b4ce2505b44f73a38896dd5d71 Log: Side exit on overflow Changed paths: M ext/opcache/jit/zend_jit_trace.c Diff: 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) {

« previous php.cvs (#112202) next »