-
Bug
-
Resolution: Fixed
-
P4
-
8, 9, 10, 11
-
b08
-
Not verified
A DESCRIPTION OF THE PROBLEM :
Example code :
BUFFER_UNDERFLOW:
int netSize = engine.getSession().getPacketBufferSize();
// Resize buffer if needed.
if (netSize > dst.capacity()) { //**********************maybe should be :if (netSize > src.capacity()) {
ByteBuffer b = ByteBuffer.allocate(netSize);
src.flip();
b.put(src);
src = b;
}
// Obtain more inbound network data for src,
// then retry the operation.
break;
// other cases: CLOSED, OK.
FREQUENCY : always
Example code :
BUFFER_UNDERFLOW:
int netSize = engine.getSession().getPacketBufferSize();
// Resize buffer if needed.
if (netSize > dst.capacity()) { //**********************maybe should be :if (netSize > src.capacity()) {
ByteBuffer b = ByteBuffer.allocate(netSize);
src.flip();
b.put(src);
src = b;
}
// Obtain more inbound network data for src,
// then retry the operation.
break;
// other cases: CLOSED, OK.
FREQUENCY : always
- duplicates
-
JDK-8239022 Error in SSLEngine Javadoc sample code
-
- Closed
-