Issue #2010 - Ensure raw tagnames are safe exiting internalEntityParser

This resolves #2010
This commit is contained in:
Moonchild 2022-09-28 13:49:41 +00:00 committed by roytam1
commit b06fd11d6f

View file

@ -4999,8 +4999,18 @@ internalEntityProcessor(XML_Parser parser,
{
processor = contentProcessor;
/* see externalEntityContentProcessor vs contentProcessor */
return doContent(parser, parentParser ? 1 : 0, encoding, s, end,
nextPtr, (XML_Bool)!ps_finalBuffer);
result = doContent(parser,
parentParser ? 1 : 0,
encoding,
s,
end,
nextPtr,
(XML_Bool)!ps_finalBuffer);
if (result == XML_ERROR_NONE) {
if (!storeRawNames(parser))
return XML_ERROR_NO_MEMORY;
}
return result;
}
}