diff options
| author | jvoisin | 2022-05-15 17:12:28 +0200 |
|---|---|---|
| committer | jvoisin | 2022-05-15 17:12:28 +0200 |
| commit | b3f52547fb2a3a1192711c54315590b2b108c280 (patch) | |
| tree | f5775a8afda724455b5dec67e2f3fca86f05db54 /src/sp_disabled_functions.c | |
| parent | 6e853a21c008f1a8a366e41cf25a24cf97f54764 (diff) | |
Fix a possible null-pointer dereference
Diffstat (limited to 'src/sp_disabled_functions.c')
| -rw-r--r-- | src/sp_disabled_functions.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { | |||
| 515 | zif_handler orig_handler; | 515 | zif_handler orig_handler; |
| 516 | char* current_function_name = get_complete_function_path(EG(current_execute_data)); | 516 | char* current_function_name = get_complete_function_path(EG(current_execute_data)); |
| 517 | 517 | ||
| 518 | if (!current_function_name || true == check_is_in_eval_whitelist(current_function_name)) { | 518 | if (!current_function_name) { |
| 519 | return; | ||
| 520 | } | ||
| 521 | |||
| 522 | if( true == check_is_in_eval_whitelist(current_function_name)) { | ||
| 519 | goto whitelisted; | 523 | goto whitelisted; |
| 520 | } | 524 | } |
| 521 | 525 | ||
