mmanders 01/07/23 11:40:30
Modified: src/share/org/apache/tomcat/util/buf UDecoder.java
Log:
Fixed an ArrayOutOfBoundException in convert( CharChunk mb ). Copied the same test
used in convert( ByteChunk mb ).
Submitted by: Thibault FREY <[EMAIL PROTECTED]>
Revision Changes Path
1.5 +1 -0
jakarta-tomcat/src/share/org/apache/tomcat/util/buf/UDecoder.java
Index: UDecoder.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/buf/UDecoder.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- UDecoder.java 2001/07/19 05:49:02 1.4
+++ UDecoder.java 2001/07/23 18:40:30 1.5
@@ -143,6 +143,7 @@
}
if( idx2 >= 0 && idx2 < idx ) idx=idx2;
+ if( idx < 0 ) idx=idx2;
for( int j=idx; j<cend; j++, idx++ ) {
if( buff[ j ] == '+' ) {