]> granicus.if.org Git - php/commitdiff
Fixed false pasitive ASAN NULL pointer dereference warning
authorDmitry Stogov <dmitry@zend.com>
Tue, 17 Nov 2020 13:23:30 +0000 (16:23 +0300)
committerDmitry Stogov <dmitry@zend.com>
Tue, 17 Nov 2020 13:23:30 +0000 (16:23 +0300)
ext/opcache/jit/zend_jit.c

index eea6b5c7ba972fa17d1af71cd820bd1d1512b8fd..6f9e978a6de34453eb0a39f9beebf4b351c4b120 100644 (file)
@@ -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);
                        }