1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

xmlSetProp() and xmlNewProp() fixes, mem extra alloc bug in parser fixed, Daniel

This commit is contained in:
Daniel Veillard
1999-11-12 17:02:31 +00:00
parent bdc28bc299
commit 51e3b154bf
7 changed files with 40 additions and 23 deletions

View File

@ -1993,7 +1993,7 @@ htmlParseStartTag(htmlParserCtxtPtr ctxt) {
if (name != NULL) xmlFree(name);
return;
}
} else if (nbatts + 2 < maxatts) {
} else if (nbatts + 4 > maxatts) {
maxatts *= 2;
atts = (const xmlChar **) xmlRealloc(atts, maxatts * sizeof(xmlChar *));
if (atts == NULL) {