Has anyone with commit priviledges gotten a chance to look at this?  I would
fix it but I don't believe it would be a simple change

rstupek wrote:
> 
> I've found a bug in TextLineDecoder.  The following will not be correctly
> interpreted by the decoder using \r\n as the LineDelimiter
> 
> This is some text\r\r\n
> 
> I believe the issue is that the decoder encounters the first \r and is not
> able to match because the second character is not a \n but it then has
> skipped the second \r for purposes of matching the next character which is
> a \n
> ...
>             byte b = in.get();
>             if (delimBuf.get(matchCount) == b) {
> ...
> 

-- 
View this message in context: 
http://www.nabble.com/TextLineDecoder-bug-tp14563042s16868p14618948.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to