mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-13 20:14:57 -10:00
* Mostly, this unbitrots the patches and updates line numbers.
* Define MOZ_XML_GetMismatchedTag and MOZ_XML_ProcessingEntityValue in
moz_xmlparse.c instead of these patches, to reduce future bitrot. This means
that 06_report_processing_entity.patch can be removed entirely.
* For 06_always_store_rawnames.patch, in the section from line 33 to 71 nothing
is really changing. The old diff was just really awful for some reason. For
the final chunk from line 72 to 86, that chunk of code with a call to
storeRawNames in internalEntityProcessor, so it could be deleted.
* 11_nested_entities.patch handles some kind of issue with nested entities.
This seems to correspond to code in internalEntityProcessor where there
is now an assertion:
assert(parser->m_openInternalEntities == openEntity);
So I guess it is no longer needed. Peter removed it from his patch stack.
* Renumber the patches to account for the two removed ones.
* In 11_no_debug_report.patch, a new struct MALLOC_TRACKER has been added.
I had to remove new debugLevel here, as well as peakBytesAllocated, which
as it says is only used when debugLevel is set. expat_heap_stat is also
only used by that code, so it gets removed, too.
* 12_unused.patch removes a bunch of unused code. The stuff around line 56
had to change because a new function, parserBusy, that is used was added
into the middle of a bunch of unused functions.
Differential Revision: https://phabricator.services.mozilla.com/D278892
18 lines
508 B
Diff
18 lines
508 B
Diff
diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c
|
|
--- a/expat/lib/xmlparse.c
|
|
+++ b/expat/lib/xmlparse.c
|
|
@@ -2780,7 +2780,13 @@ XML_GetCurrentByteIndex(XML_Parser parser) {
|
|
if (parser->m_eventPtr)
|
|
return (XML_Index)(parser->m_parseEndByteIndex
|
|
- (parser->m_parseEndPtr - parser->m_eventPtr));
|
|
+/* BEGIN MOZILLA CHANGE (fix XML_GetCurrentByteIndex) */
|
|
+#if 0
|
|
return -1;
|
|
+#else
|
|
+ return parser->m_parseEndByteIndex;
|
|
+#endif
|
|
+/* END MOZILLA CHANGE */
|
|
}
|
|
|
|
int XMLCALL
|