1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Merge branch 'PHP-8.3' into PHP-8.4

* PHP-8.3:
  xml: Use safe_emalloc() correctly
This commit is contained in:
Niels Dossche
2025-11-15 12:45:46 +01:00

View File

@@ -95,7 +95,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) {