Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2007

Large text nodes truncated in SAX

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Not A Problem
    • 3.1.0
    • None
    • SAX/SAX2
    • None
    • Linux 64bit. CentOs 5

    Description

      I have a simple XML document (no DTD), UTF-8 encoded. One of the elements contains a large Base64 encoded binary object (1078616) characters. I feed the data through the BinInputStream 49151 bytes at a time. This works on Windows fine (it results in 2 calls to characters(one with about 1 million characters, the other with the remainder). On Linux I get 2 calls as well, 523 thousand and some characters each, but the remaining characters are never sent. the endOfElement callback comes next.
      Sorry, not a bug. It is an error in my program and my misreading of the logs due to not knowing that the size of wchar_t is 4 on Linux while XMLCh is 2.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            cszabo1 Carol Szabo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment