tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 44494] Requests greater than 8k being truncated.
Date Mon, 07 Apr 2008 15:10:30 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=44494





--- Comment #31 from Remy Maucherat <remm@apache.org>  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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message