Blame SOURCES/D158770.diff
|
|
7befaf |
diff --git a/parser/expat/lib/xmlparse.c b/parser/expat/lib/xmlparse.c
|
|
|
7befaf |
--- a/parser/expat/lib/xmlparse.c
|
|
|
7befaf |
+++ b/parser/expat/lib/xmlparse.c
|
|
|
7befaf |
@@ -5652,12 +5652,18 @@
|
|
|
7befaf |
else
|
|
|
7befaf |
#endif /* XML_DTD */
|
|
|
7befaf |
{
|
|
|
7befaf |
processor = contentProcessor;
|
|
|
7befaf |
/* see externalEntityContentProcessor vs contentProcessor */
|
|
|
7befaf |
- return doContent(parser, parentParser ? 1 : 0, encoding, s, end,
|
|
|
7befaf |
- nextPtr, (XML_Bool)!ps_finalBuffer);
|
|
|
7befaf |
+ result = doContent(parser, parser->m_parentParser ? 1 : 0,
|
|
|
7befaf |
+ parser->m_encoding, s, end, nextPtr,
|
|
|
7befaf |
+ (XML_Bool)! parser->m_parsingStatus.finalBuffer);
|
|
|
7befaf |
+ if (result == XML_ERROR_NONE) {
|
|
|
7befaf |
+ if (! storeRawNames(parser))
|
|
|
7befaf |
+ return XML_ERROR_NO_MEMORY;
|
|
|
7befaf |
+ }
|
|
|
7befaf |
+ return result;
|
|
|
7befaf |
}
|
|
|
7befaf |
}
|
|
|
7befaf |
|
|
|
7befaf |
static enum XML_Error PTRCALL
|
|
|
7befaf |
errorProcessor(XML_Parser parser,
|
|
|
7befaf |
|