tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Bug in B2C converter WAS: svn commit: r568307 - /tomcat/trunk/java/org/apache/tomcat/util/buf/B2CConverter.java
Date Thu, 28 Feb 2008 19:36:59 GMT
Remy Maucherat wrote:
> On Thu, 2008-02-28 at 01:36 +0100, Remy Maucherat wrote:
>> Index: java/org/apache/catalina/connector/InputBuffer.java
>> ===================================================================
>> ---java/org/apache/catalina/connector/InputBuffer.java	(revision 630535)
>> +++java/org/apache/catalina/connector/InputBuffer.java	(working copy)
>> @@ -355,7 +355,7 @@
>>          }
>>  
>>          state = CHAR_STATE;
>> -        conv.convert(bb, cb, len);
>> +        conv.convert(bb, cb, bb.getLength());
>>          bb.setOffset(bb.getEnd());
>>  
>>          return cb.getLength();
> 
> This seems to work for me. It should be equivalent to the value returned
> by the available method, since the value passed is the same (it is the
> amount of bytes which have been read).

Just to be clear, do you mean that the above patch 
http://issues.apache.org/bugzilla/show_bug.cgi?id=44494  ?

Cheers,

Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message