mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
buffer was too small
This commit is contained in:
parent
354f1158d8
commit
832849e522
@ -89,7 +89,7 @@ extern void xslt_make_array(zval **zarr, char ***carr)
|
||||
return;
|
||||
}
|
||||
|
||||
*carr = emalloc((zend_hash_num_elements(arr) * 2) + 1);
|
||||
*carr = emalloc(((zend_hash_num_elements(arr) * 2) + 1) * sizeof(char *));
|
||||
|
||||
for (zend_hash_internal_pointer_reset(arr);
|
||||
zend_hash_get_current_data(arr, (void **) ¤t) == SUCCESS;
|
||||
|
Loading…
Reference in New Issue
Block a user