mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Use zend_string_safe_alloc
This commit is contained in:
parent
25ef19f927
commit
a05320c419
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ int _php_ibase_blob_get(zval *return_value, ibase_blob *ib_blob, zend_ulong max_
|
||||||
zend_ulong cur_len;
|
zend_ulong cur_len;
|
||||||
unsigned short seg_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) {
|
for (cur_len = stat = 0; (stat == 0 || stat == isc_segment) && cur_len < max_len; cur_len += seg_len) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue