]> granicus.if.org Git - php/commitdiff
Fixed possible crash
authorDmitry Stogov <dmitry@zend.com>
Fri, 6 May 2016 09:36:21 +0000 (12:36 +0300)
committerDmitry Stogov <dmitry@zend.com>
Fri, 6 May 2016 09:36:21 +0000 (12:36 +0300)
ext/opcache/Optimizer/zend_call_graph.c

index f245d14eaad15909f5c03c62b29a6e0a0c7631ba..c7bc7b2e3ec7fefaaa627a68961c2fd65e68a84d 100644 (file)
@@ -170,7 +170,7 @@ static int zend_analyze_calls(zend_arena **arena, zend_script *script, uint32_t
                                                call_info->next_caller = NULL;
                                        } else {
                                                zend_func_info *callee_func_info = ZEND_FUNC_INFO(&func->op_array);
-                                               call_info->next_caller = callee_func_info->caller_info;
+                                               call_info->next_caller = callee_func_info ? callee_func_info->caller_info : NULL;
                                        }
                                }
                                /* break missing intentionally */