keith 02/04/23 13:07:57
Modified: util/java/org/apache/tomcat/util/buf ByteChunk.java
Log:
Better check
Revision Changes Path
1.11 +1 -1
jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/ByteChunk.java
Index: ByteChunk.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat-connectors/util/java/org/apache/tomcat/util/buf/ByteChunk.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ByteChunk.java 23 Apr 2002 19:44:14 -0000 1.10
+++ ByteChunk.java 23 Apr 2002 20:07:57 -0000 1.11
@@ -557,7 +557,7 @@
}
int len = end - start;
- if (b2.length > len || b1 == null || b2 == null) {
+ if (b1 == null || b2 == null || b2.length > len) {
return false;
}
for (int i = start, j = 0; i < end && j < b2.length; ) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>