https://issues.apache.org/bugzilla/show_bug.cgi?id=44494





--- Comment #26 from Suzuki Yuichiro <[EMAIL PROTECTED]>  2008-03-25 21:11:57 
PST ---
(In reply to comment #23)

> cb.setLimit(cb.getStart() + cnt);
> cb.append( result, 0, cnt );

cb.append() doesn't modify cb.start
and cb.start is set zero by InputBuffer#realReadChars if markPos == -1.
So "cb.getStart() + cnt" is same to or less than bb.length(),
and it will be bb.length()/3 if all characters are 3 bytes.
(the surplus bytes may exist in the buffer of ReadConvertor)

This will break the buffer of CharChunk.

If "cb.getEnd() + cnt" is used as alternative,
it will overwrite the limit that is set by CoyoteReader#mark method.
I guess that may cause another problem.
(though mark/reset methods have not worked correctly before that)

Yuichiro


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to