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:
7
parser.c
7
parser.c
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user