Reproducer for JDK-8221218

Flavia Rainone frainone at
Mon Apr 25 14:45:30 UTC 2022

Hi everyone,

I work with the XNIO ( ) project, led by
David Lloyd in CC.

I'm not sure if this is the best way to get in touch, but I could not find
out how to create an account for OpenJDK Jira to add a comment there.

We have a reproducer for JDK-8221218, and it appears it is not solved yet
(tested with jdk 11.0.12). It is not intermittent, and it happens when we
try to do an SSLEngine.unwrap with a zero remaining() ByteBuffer (in older
versions, the engine would just return a BUFFER_UNDERFLOW result).

You can see more information about this here:

To reproduce the issue, just follow the steps in "How to reproduce" using
JDK11 and add a breakpoint at this line:

Or you can simply open the test output file to view the exception:
(but then you have to comment out the XNIO-406 workaround above)

Notice that there are other failures with XNIO testsuite related to JDK11
and newer, as tracked by another Jira (XNIO-347), but they seem to be
unrelated to this issue, hence why the mvn clean install -DskipTests in the
reproduce steps.

Branch of choice should be 3.8

Since I won't be around for the next few days, Richard Opalka in CC will
follow up with you.

Best regards,


Flavia Rainone

Principal Software Engineer

Red Hat <>

frainone at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RHCC_CareerMnthEmail_Signature.jpg
Type: image/jpeg
Size: 49278 bytes
Desc: not available
URL: <>

More information about the security-dev mailing list