Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
0.8.0
-
None
-
None
Description
The CharBufferWrapper doesn't return the correct value from read(). The code looks like this:
public int read(byte[] bytes, int off, int len) throws IOException { if (!buf.hasRemaining()) { return -1; } buf.get(bytes, off, Math.min(len, buf.remaining())); return len; }
The problem is that returning len may be incorrect if buf.remaining() < len.
Thank you.