Fix the B2C converter.
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Aug 2007 22:15:40 +0000 (22:15 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Tue, 21 Aug 2007 22:15:40 +0000 (22:15 +0000)
commitb787e16802edaaf11ec4bafef5b5b925f81bef49
tree8e8acb51de224e167fd65c7502f87c1860bfdbdb
parentdec6fa8d5a3ec2a8aa710dbd3e82ce4440c4420f
Fix the B2C converter.
Sometimes data comes in incomplete chunks, and we have to check to see if we have available data, otherwise, when we return -1, the underlying InputStreamReader actually returns 1, and we get garbage in the output data.
I will discuss this on the dev list, since it affects all tomcat versions, at that time I will also provide a test case showing what can happen. Please comment on this fix, if there is something alarming

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@568307 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/tomcat/util/buf/B2CConverter.java