From a05320c4191fb0c4074f733f9a2c478b66e799ce Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 27 Apr 2016 20:29:11 +0800 Subject: [PATCH] Use zend_string_safe_alloc --- ext/interbase/ibase_blobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/interbase/ibase_blobs.c b/ext/interbase/ibase_blobs.c index 70640236c3..209904b18a 100644 --- a/ext/interbase/ibase_blobs.c +++ b/ext/interbase/ibase_blobs.c @@ -99,7 +99,7 @@ int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, zend_ulong max_ zend_ulong cur_len; unsigned short seg_len; - bl_data = zend_string_alloc(max_len, 0); + bl_data = zend_string_alloc(1, max_len, 0, 0); for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len < max_len; cur_len += seg_len) { -- 2.40.0