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

UTF8Reader buffer overflow due to incorrect total

    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

        1. fix.diff
          4 kB
          Serhiy Palamarchuk

        Activity

          People

            Unassigned Unassigned
            serhiy.pal Serhiy Palamarchuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: