8239052: java/net/httpclient/whitebox/SSLEchoTubeTestDriver.java failed with BufferUnderflowException against TLSv1.3

Daniel Fuchs daniel.fuchs at oracle.com
Fri Feb 21 10:01:17 UTC 2020


Hi,

Please find below a test fix for:

8239052: java/net/httpclient/whitebox/SSLEchoTubeTestDriver.java
          failed with BufferUnderflowException against TLSv1.3
https://bugs.openjdk.java.net/browse/JDK-8239052

webrev:
http://cr.openjdk.java.net/~dfuchs/webrev_8239052/webrev.00/

The test throws a BufferUnderflowException because it oversaw
the fact that the buffers delivered from upstream are not
necessary split at 8 bytes boundaries.
The test code tries to read a long but the long can be
split over several buffers.

The fix simply adds a carry too carry over trailing bytes
from one buffer to the next.
It also changes AbstractSSLTubeTest.java to use TLSv1.3.

best regards,

-- daniel


More information about the net-dev mailing list