[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Fix for SocketChannelImpl.read()
From: |
Mark Wielaard |
Subject: |
[cp-patches] FYI: Fix for SocketChannelImpl.read() |
Date: |
Fri, 11 Nov 2005 13:04:11 +0100 |
John Zigman spotted a typo in SocketChannelImpl.read() where we could
put too much bytes into the destination ByteBufffer. This fixes it as he
suggested.
2005-11-11 Mark Wielaard <address@hidden>
Reported by address@hidden as bug #24608.
* gnu/java/nio/SocketChannelImpl.java (read): Put readBytes in
destination ByteBuffer when it doesn't have an array instead of len
bytes.
Committed,
Mark
diff -u -r1.27 SocketChannelImpl.java
--- gnu/java/nio/SocketChannelImpl.java 2 Jul 2005 20:32:13 -0000 1.27
+++ gnu/java/nio/SocketChannelImpl.java 11 Nov 2005 11:59:58 -0000
@@ -258,7 +258,7 @@
}
else
{
- dst.put (data, offset, len);
+ dst.put (data, offset, readBytes);
}
return readBytes;
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Fix for SocketChannelImpl.read(),
Mark Wielaard <=