From b3f52547fb2a3a1192711c54315590b2b108c280 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 15 May 2022 17:12:28 +0200 Subject: Fix a possible null-pointer dereference --- src/sp_disabled_functions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index 2e659da..10a9466 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -515,7 +515,11 @@ ZEND_FUNCTION(eval_blacklist_callback) { zif_handler orig_handler; char* current_function_name = get_complete_function_path(EG(current_execute_data)); - if (!current_function_name || true == check_is_in_eval_whitelist(current_function_name)) { + if (!current_function_name) { + return; + } + + if( true == check_is_in_eval_whitelist(current_function_name)) { goto whitelisted; } -- cgit v1.3