From ee1d432193972869af395491909cd0452797702c Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Wed, 29 Nov 2017 11:43:32 +0100 Subject: Fix segfault in should_drop_on_ret This commit is almost the same than 8df77884f38e7a7334b56aafe2f441567f175af8--- src/sp_disabled_functions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sp_disabled_functions.c b/src/sp_disabled_functions.c index e233259..ca1f6a9 100644 --- a/src/sp_disabled_functions.c +++ b/src/sp_disabled_functions.c @@ -331,7 +331,7 @@ static bool should_drop_on_ret(zval* return_value, SNUFFLEUPAGUS_G(config).config_disabled_functions_ret->disabled_functions; char* complete_path_function = get_complete_function_path(execute_data); const char* current_filename = zend_get_executed_filename(TSRMLS_C); - char current_file_hash[SHA256_SIZE * 2] = {0}; + char current_file_hash[SHA256_SIZE * 2 + 1] = {0}; bool match_type = false, match_value = false; if (!complete_path_function) { -- cgit v1.3