[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/24625] New: Incorrect buffer length gnu.java.nio.SocketCh
From: |
john dot zigman at anu dot edu dot au |
Subject: |
[Bug classpath/24625] New: Incorrect buffer length gnu.java.nio.SocketChannelImpl with direct ByteBuffer |
Date: |
1 Nov 2005 22:16:09 -0000 |
A call to SocketChannel.read(buffer) passing a ByteBuffer which has been
allocated using by a call to the direct allocate method*,
ByteBuffer.allocateDirect(len), where the number of bytes read from the channel
is less than len returns a ByteBuffer with the limit set to len.
The bug seems to be on line 261 of gnu.java.nio.SocketChannelImpl where the
original line
dst.put (data, offset, len);
should be
dst.put (data, offset, readBytes);
This is also present in classpath-0.18 (at the same line).
* This done in the context of the JikesRVM and required the replacement of
VMDirectByteBuffer (and replacement of the references to
gnu.classpath.RawData). It also appears that the further works needs to be done
in order to take advantage of direct buffers.
--
Summary: Incorrect buffer length gnu.java.nio.SocketChannelImpl
with direct ByteBuffer
Product: classpath
Version: 0.17
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: classpath
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: john dot zigman at anu dot edu dot au
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24625
- [Bug classpath/24625] New: Incorrect buffer length gnu.java.nio.SocketChannelImpl with direct ByteBuffer,
john dot zigman at anu dot edu dot au <=