summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxXx-caillou-xXx2017-11-29 11:43:32 +0100
committerjvoisin2017-11-29 11:43:32 +0100
commitee1d432193972869af395491909cd0452797702c (patch)
tree00081847a040301e5aecd59ec3558663529c14b6 /src
parent10437787b0e8ede80976de4a1c22775fc1282f36 (diff)
Fix segfault in should_drop_on_ret
This commit is almost the same than 8df77884f38e7a7334b56aafe2f441567f175af8
Diffstat (limited to 'src')
-rw-r--r--src/sp_disabled_functions.c2
1 files changed, 1 insertions, 1 deletions
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,
331 SNUFFLEUPAGUS_G(config).config_disabled_functions_ret->disabled_functions; 331 SNUFFLEUPAGUS_G(config).config_disabled_functions_ret->disabled_functions;
332 char* complete_path_function = get_complete_function_path(execute_data); 332 char* complete_path_function = get_complete_function_path(execute_data);
333 const char* current_filename = zend_get_executed_filename(TSRMLS_C); 333 const char* current_filename = zend_get_executed_filename(TSRMLS_C);
334 char current_file_hash[SHA256_SIZE * 2] = {0}; 334 char current_file_hash[SHA256_SIZE * 2 + 1] = {0};
335 bool match_type = false, match_value = false; 335 bool match_type = false, match_value = false;
336 336
337 if (!complete_path_function) { 337 if (!complete_path_function) {