mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rstupek <rich.stu...@ezot.com>
Subject TextLineDecoder bug
Date Mon, 31 Dec 2007 23:31:12 GMT

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-tp14563042s16868p14563042.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.


Mime
View raw message