Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-2610

Unicode character beyond 0xFFFF fails, if on buffer boundary

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.7.2
    • None
    • Serialization
    • Security Level: No security risk; visible to anyone (Ordinary problems in Xalan projects. Anybody can view the issue.)
    • None
    • JDK 7, Windows 7
      classpath=.;serializer.jar;xalan.jar

    Description

      If the input XML contains a text node with a unicode character with code point beyond 0xFFFF located on a 1024 character boundary, the transformation fails with the following message:
      (Position des Fehlers unbekannt)org.xml.sax.SAXException: Ungültige UTF-16-Ersetzung festgestellt: d83d ?
      java.io.IOException: Ungültige UTF-16-Ersetzung festgestellt: d83d ?
      See enclosed files to reproduce.

      This has been verified against 2.7.0, 2.7.1, and 2.7.2

      Attachments

        1. test.xsl
          0.2 kB
          Hubert Hesse
        2. test.xml
          1 kB
          Hubert Hesse
        3. Test.java
          0.6 kB
          Hubert Hesse

        Activity

          People

            shathaway Steven J. Hathaway
            hubert.hesse Hubert Hesse
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: