1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

fix bug reported by Holger Rauch added the test to th regression suite

* parser.c: fix bug reported by Holger Rauch
* test/att8 result/noent/att8 result/att8 result/att8.rdr
  result/att8.sax: added the test to th regression suite
Daniel
This commit is contained in:
Daniel Veillard
2004-03-10 16:27:03 +00:00
parent b318c3b745
commit d3999c7ac6
7 changed files with 69 additions and 2 deletions

View File

@@ -1844,10 +1844,12 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) {
* Macro used to grow the current buffer.
*/
#define growBuffer(buffer) { \
xmlChar *tmp; \
buffer##_size *= 2; \
buffer = (xmlChar *) \
tmp = (xmlChar *) \
xmlRealloc(buffer, buffer##_size * sizeof(xmlChar)); \
if (buffer == NULL) goto mem_error; \
if (tmp == NULL) goto mem_error; \
buffer = tmp; \
}
/**
@@ -7320,6 +7322,7 @@ reparse:
if (nsPush(ctxt, attname, URL) > 0) nbNs++;
if (alloc != 0) xmlFree(attvalue);
SKIP_BLANKS;
if (ctxt->input->base != base) goto base_changed;
continue;
}