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





--- Comment #28 from Remy Maucherat <[EMAIL PROTECTED]>  2008-03-26 05:44:40 
PST ---
(In reply to comment #26)
> > 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)

That's not the fix, that's something bad that I left in (the purpose was to
make sure that cnt could be appended, so it should be getEnd + cnt, if getEnd +
cnt > getLimit). I do not see why changing the limit to something greater could
cause problems with marking.

As far as I am concerned, this bug is fixed. If you think it's not, feel free
to spend time on it and propose alternate fixes.


-- 
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