com php-src: Try to fix asan warning in scalar_constant_def aults.phpt: ext/opcache/jit/zend_jit_x86.dasc
| From: | Nikita Popov | Date: | Tue, 29 Oct 2019 09:01:35 +0000 |
| Subject: | com php-src: Try to fix asan warning in scalar_constant_def aults.phpt: ext/opcache/jit/zend_jit_x86.dasc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109107@lists.php.net to get a copy of this message | ||
Commit: 39897eb80b7a97fc7e6c730a9e07a336eac2bfb8
Author: Nikita Popov <nikita.ppv@gmail.com> Tue, 29 Oct 2019 09:57:29 +0100
Parents: 726989433a7a0e89d07be49dd254588b0aff9671
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=39897eb80b7a97fc7e6c730a9e07a336eac2bfb8
Log:
Try to fix asan warning in scalar_constant_defaults.phpt
Doing the SAVE_VALID_OPLINE right before the call, because we
still need r0 before that.
Changed paths:
M ext/opcache/jit/zend_jit_x86.dasc
Diff:
diff --git a/ext/opcache/jit/zend_jit_x86.dasc b/ext/opcache/jit/zend_jit_x86.dasc
index 7422aab592d..003ddd3072f 100644
--- a/ext/opcache/jit/zend_jit_x86.dasc
+++ b/ext/opcache/jit/zend_jit_x86.dasc
@@ -9228,17 +9228,20 @@ static int zend_jit_recv_init(dasm_State **Dst, const zend_op *opline, const
zen
| mov CARG3, arg_num
| LOAD_ADDR CARG4, (ptrdiff_t)arg_info
| mov aword A5, r0
+ | SAVE_VALID_OPLINE opline
| EXT_CALL zend_jit_verify_arg_object, r0
|.elif X64
| mov CARG3, arg_num
| LOAD_ADDR CARG4, (ptrdiff_t)arg_info
| mov CARG5, r0
+ | SAVE_VALID_OPLINE opline
| EXT_CALL zend_jit_verify_arg_object, r0
|.else
| sub r4, 4
| push r0
| push (ptrdiff_t)arg_info
| push arg_num
+ | SAVE_VALID_OPLINE opline
| EXT_CALL zend_jit_verify_arg_object, r0
| add r4, 4
|.endif
@@ -9279,17 +9282,20 @@ static int zend_jit_recv_init(dasm_State **Dst, const zend_op *opline, const
zen
| mov CARG3, arg_num
| LOAD_ADDR CARG4, (ptrdiff_t)arg_info
| mov aword A5, r0
+ | SAVE_VALID_OPLINE opline
| EXT_CALL zend_jit_verify_arg_slow, r0
|.elif X64
| mov CARG3, arg_num
| LOAD_ADDR CARG4, (ptrdiff_t)arg_info
| mov CARG5, r0
+ | SAVE_VALID_OPLINE opline
| EXT_CALL zend_jit_verify_arg_slow, r0
|.else
| sub r4, 4
| push r0
| push (ptrdiff_t)arg_info
| push arg_num
+ | SAVE_VALID_OPLINE opline
| EXT_CALL zend_jit_verify_arg_slow, r0
| add r4, 4
|.endif