Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1655

UTF8Reader buffer overflow due to incorrect total

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.10.0
    • None
    • SAX
    • None

    Description

      UTF8Reader buffer overflow with exception ArrayIndexOutOfBoundsException: 2048 appears when surrogate is cached and the next read count is more than buffer size.

      See attached patch with test to get better understanding of preconditions

      Attachments

        Activity

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

          People

            Unassigned Unassigned
            serhiy.pal Serhiy Palamarchuk

            Dates

              Created:
              Updated:

              Slack

                Issue deployment