https://issues.apache.org/bugzilla/show_bug.cgi?id=44494
--- Comment #31 from Remy Maucherat <[EMAIL PROTECTED]> 2008-04-07 08:10:29
PST ---
I found a problem with the buffer resizing in conjunction with mark/reset.
Index: java/org/apache/tomcat/util/buf/CharChunk.java
===================================================================
--- java/org/apache/tomcat/util/buf/CharChunk.java (revision 645466)
+++ java/org/apache/tomcat/util/buf/CharChunk.java (working copy)
@@ -480,7 +480,7 @@
tmp=new char[newSize];
}
- System.arraycopy(buff, start, tmp, start, end-start);
+ System.arraycopy(buff, 0, tmp, 0, end);
buff = tmp;
tmp = null;
}
Alternately, a buffered reader could be used (since the decoding code is now
fixed, there should be no problem).
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]