Skip to content

Commit a05320c

Browse files
committed
Use zend_string_safe_alloc
1 parent 25ef19f commit a05320c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/interbase/ibase_blobs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, zend_ulong max_
9999
zend_ulong cur_len;
100100
unsigned short seg_len;
101101

102-
bl_data = zend_string_alloc(max_len, 0);
102+
bl_data = zend_string_alloc(1, max_len, 0, 0);
103103

104104
for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len < max_len; cur_len += seg_len) {
105105

0 commit comments

Comments
 (0)