XalanJ2
  1. XalanJ2
  2. XALANJ-2316

WriterToUTF8Buffered.write(String s) fail with big strings

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.7.1
    • Component/s: Serialization
    • Labels:
      None
    • Xalan info:
      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)

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

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Enrico Scoda
            Reviewer:
            Kevin Cormier
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development