jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cko...@apache.org
Subject svn commit: r1596132 - /jackrabbit/branches/2.6/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/xml/TargetImportHandler.java
Date Tue, 20 May 2014 08:15:11 GMT
Author: ckoell
Date: Tue May 20 08:15:10 2014
New Revision: 1596132

URL: http://svn.apache.org/r1596132
Log:
JCR-3235 ArrayIndexOfOufBounds in TargetImportHandler$BufferedStringValue.append()

Modified:
    jackrabbit/branches/2.6/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/xml/TargetImportHandler.java

Modified: jackrabbit/branches/2.6/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/xml/TargetImportHandler.java
URL: http://svn.apache.org/viewvc/jackrabbit/branches/2.6/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/xml/TargetImportHandler.java?rev=1596132&r1=1596131&r2=1596132&view=diff
==============================================================================
--- jackrabbit/branches/2.6/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/xml/TargetImportHandler.java
(original)
+++ jackrabbit/branches/2.6/jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/xml/TargetImportHandler.java
Tue May 20 08:15:10 2014
@@ -323,7 +323,7 @@ abstract class TargetImportHandler exten
                 } else {
                     if (bufferPos + length > buffer.length) {
                         // reallocate new buffer and spool old buffer contents
-                        char[] newBuffer = new char[buffer.length + BUFFER_INCREMENT];
+                        char[] newBuffer = new char[ bufferPos + length + BUFFER_INCREMENT];
                         System.arraycopy(buffer, 0, newBuffer, 0, bufferPos);
                         buffer = newBuffer;
                     }



Mime
View raw message