tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

05_getcurrentbyteindex.patch (504B)


      1 diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c
      2 --- a/expat/lib/xmlparse.c
      3 +++ b/expat/lib/xmlparse.c
      4 @@ -2357,7 +2357,13 @@ XML_GetCurrentByteIndex(XML_Parser parse
      5   if (parser->m_eventPtr)
      6     return (XML_Index)(parser->m_parseEndByteIndex
      7                        - (parser->m_parseEndPtr - parser->m_eventPtr));
      8 +/* BEGIN MOZILLA CHANGE (fix XML_GetCurrentByteIndex) */
      9 +#if 0
     10   return -1;
     11 +#else
     12 +  return parser->m_parseEndByteIndex;
     13 +#endif
     14 +/* END MOZILLA CHANGE */
     15 }
     16 
     17 int XMLCALL