From 228fadf307b167a22ad6ec760f3b2ee2e9f2fee3 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 6 Oct 2018 11:26:32 +0200 Subject: Remove sp_terminate and bump a bit the coverage --- src/sp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index 8401a92..3e542f7 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -135,7 +135,7 @@ static char* zend_string_to_char(const zend_string* zs) { if (ZSTR_LEN(zs) + 1 < ZSTR_LEN(zs)) { sp_log_err("overflow_error", "Overflow tentative detected in zend_string_to_char"); - sp_terminate(); + zend_bailout(); } char* copy = ecalloc(ZSTR_LEN(zs) + 1, 1); -- cgit v1.3