You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Serhiy Palamarchuk (JIRA)" <xe...@xml.apache.org> on 2015/02/16 16:04:12 UTC

[jira] [Created] (XERCESJ-1655) UTF8Reader buffer overflow due to incorrect total

Serhiy Palamarchuk created XERCESJ-1655:
-------------------------------------------

             Summary: UTF8Reader buffer overflow due to incorrect total
                 Key: XERCESJ-1655
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1655
             Project: Xerces2-J
          Issue Type: Bug
          Components: SAX
    Affects Versions: 2.10.0
            Reporter: Serhiy Palamarchuk


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

See attached patch with test to get better understanding of preconditions



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org