diff options
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index 14b7c09..cdcf205 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -145,7 +145,8 @@ static char* zend_string_to_char(const zend_string* zs) { | |||
| 145 | // Remove \0 from the middle of a string | 145 | // Remove \0 from the middle of a string |
| 146 | 146 | ||
| 147 | if (ZSTR_LEN(zs) + 1 < ZSTR_LEN(zs)) { | 147 | if (ZSTR_LEN(zs) + 1 < ZSTR_LEN(zs)) { |
| 148 | sp_log_err("overflow_error", "Overflow tentative detected in zend_string_to_char."); | 148 | sp_log_err("overflow_error", |
| 149 | "Overflow tentative detected in zend_string_to_char."); | ||
| 149 | sp_terminate(); | 150 | sp_terminate(); |
| 150 | } | 151 | } |
| 151 | char* copy = emalloc(ZSTR_LEN(zs) + 1); | 152 | char* copy = emalloc(ZSTR_LEN(zs) + 1); |
