mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.5'
* PHP-8.5: xml: Use safe_emalloc() correctly
This commit is contained in:
@@ -98,7 +98,7 @@ start_element_handler_ns(void *user, const xmlChar *name, const xmlChar *prefix,
|
||||
|
||||
if (attributes != NULL) {
|
||||
xmlChar *qualified_name_attr = NULL;
|
||||
attrs = safe_emalloc((nb_attributes * 2) + 1, sizeof(int *), 0);
|
||||
attrs = safe_emalloc(nb_attributes, 2 * sizeof(int *), sizeof(int *));
|
||||
|
||||
for (i = 0; i < nb_attributes; i += 1) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user