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

WriterToUTF8Buffered.write(String s) fail with big strings

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.7.1
    • Serialization
    • None
    • PatchAvailable

    Description

      Try to write an attribute with a value of 50000 characters.
      You will get this exception:

      java.lang.ArrayIndexOutOfBoundsException
      at java.lang.System.arraycopy(Native Method)
      at java.lang.String.getChars(String.java:726)
      at org.apache.xml.serializer.WriterToUTF8Buffered.write(WriterToUTF8Buffered.java:347)
      at org.apache.xml.serializer.ToHTMLStream.writeAttrString(ToHTMLStream.java:1431)

      Attachments

        1. WriterToUTF8Buffered.java
          16 kB
          Enrico Scoda
        2. j2316.patch
          1 kB
          Kevin Cormier

        Activity

          People

            Unassigned Unassigned
            enrico@usablenet.com Enrico Scoda
            Kevin Cormier Kevin Cormier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: