Bug 1791598 - Ensure raw tagnames are safe exiting internalEntityParser. r=mccr8

Differential Revision: https://phabricator.services.mozilla.com/D158770
This commit is contained in:
Peter Van der Beken 2022-10-10 12:15:38 +00:00
parent 3b965e8556
commit 08e889e6f8

View File

@ -5654,8 +5654,14 @@ 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, parser->m_parentParser ? 1 : 0,
parser->m_encoding, s, end, nextPtr,
(XML_Bool)! parser->m_parsingStatus.finalBuffer);
if (result == XML_ERROR_NONE) {
if (! storeRawNames(parser))
return XML_ERROR_NO_MEMORY;
}
return result;
}
}