summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2020-11-17 16:23:30 +0300
committerDmitry Stogov <dmitry@zend.com>2020-11-17 16:23:30 +0300
commit1523733bc435a6ea835978433766004ef30ec86a (patch)
tree3bf54c60ad9c486011d960f3c32aac5952c2e88e
parentf4a600be04a01af5c0f340dbfc88c1971202e84b (diff)
downloadphp-git-1523733bc435a6ea835978433766004ef30ec86a.tar.gz
Fixed false pasitive ASAN NULL pointer dereference warning
-rw-r--r--ext/opcache/jit/zend_jit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/jit/zend_jit.c b/ext/opcache/jit/zend_jit.c
index eea6b5c7ba..6f9e978a6d 100644
--- a/ext/opcache/jit/zend_jit.c
+++ b/ext/opcache/jit/zend_jit.c
@@ -448,7 +448,7 @@ static void *dasm_link_and_encode(dasm_State **dasm_state,
name,
(op_array && op_array->filename) ? ZSTR_VAL(op_array->filename) : NULL,
op_array,
- &ssa->cfg,
+ ssa ? &ssa->cfg : NULL,
entry,
size);
}