diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-10 07:39:16 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-10 07:39:16 +0000 |
commit | 5e436004d7ec50bc29f392fded92224b4cb93e86 (patch) | |
tree | bc5fedac052339e4650f8c50a7665b1eabc044f0 /D158770.patch | |
parent | 4b16a230f7f50826db46407f4ccfde8510e70642 (diff) |
automatic import of firefoxopeneuler23.03
Diffstat (limited to 'D158770.patch')
-rw-r--r-- | D158770.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/D158770.patch b/D158770.patch new file mode 100644 index 0000000..1d76995 --- /dev/null +++ b/D158770.patch @@ -0,0 +1,25 @@ +diff --git a/parser/expat/lib/xmlparse.c b/parser/expat/lib/xmlparse.c +--- a/parser/expat/lib/xmlparse.c ++++ b/parser/expat/lib/xmlparse.c +@@ -5652,12 +5652,18 @@ + else + #endif /* XML_DTD */ + { + 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; + } + } + + static enum XML_Error PTRCALL + errorProcessor(XML_Parser parser, + |