com php-src: Drop no-op dasm_growpc() call: ext/opc ache/jit/zend_jit_trace.c
| From: | Nikita Popov | Date: | Wed, 22 Jul 2020 09:11:36 +0000 |
| Subject: | com php-src: Drop no-op dasm_growpc() call: ext/opc ache/jit/zend_jit_trace.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112311@lists.php.net to get a copy of this message | ||
Commit: f90c73595747e50ec66bbc3e96cc01f96d650237
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 22 Jul 2020 11:10:42 +0200
Parents: aaedbde8b4294bfceea4ef7f76c50692676adb4a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f90c73595747e50ec66bbc3e96cc01f96d650237
Log:
Drop no-op dasm_growpc() call
This doesn't do anything, as maxpc=0 is passed. However, ubsan
complains about the memset of a null pointer, so avoid it.
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 06d7422ae5..7a52c78d76 100644
--- a/ext/opcache/jit/zend_jit_trace.c
+++ b/ext/opcache/jit/zend_jit_trace.c
@@ -4609,7 +4609,6 @@ static const void *zend_jit_trace_exit_to_vm(uint32_t trace_num, uint32_t
exit_n
dasm_init(&dasm_state, DASM_MAXSECTION);
dasm_setupglobal(&dasm_state, dasm_labels, zend_lb_MAX);
dasm_setup(&dasm_state, dasm_actions);
- dasm_growpc(&dasm_state, 0);
zend_jit_align_func(&dasm_state);