Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSLTest index out of bounds #859

Open
mpilquist opened this issue May 1, 2023 · 0 comments
Open

SSLTest index out of bounds #859

mpilquist opened this issue May 1, 2023 · 0 comments

Comments

@mpilquist
Copy link
Member

First noticed in #858

==> X tests.issue.Test238.see (https://github.com/functional-streams-for-scala/fs2/pull/1989)  0.023s javax.net.ssl.SSLException: Fail to unwrap network record
    at sun.security.ssl.Alert.createSSLException(Alert.java:133)
    at sun.security.ssl.TransportContext.fatal(TransportContext.java:360)
    at sun.security.ssl.TransportContext.fatal(TransportContext.java:303)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:470)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:433)
    at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:637)
    at fs2.io.net.tls.TLSEngine$$anon$1.$anonfun$unwrap$1(TLSEngine.scala:158)
    at fs2.io.net.tls.InputOutputBuffer$$anon$1.$anonfun$perform$3(InputOutputBuffer.scala:92)
    at delay @ fs2.io.net.tls.InputOutputBuffer$$anon$1.$anonfun$perform$2(InputOutputBuffer.scala:90)
    at get @ skunk.util.Pool$.free$1(Pool.scala:156)
    at flatMap @ fs2.io.net.tls.InputOutputBuffer$$anon$1.$anonfun$perform$1(InputOutputBuffer.scala:89)
    at get @ skunk.util.Pool$.free$1(Pool.scala:156)
    at flatMap @ fs2.io.net.tls.InputOutputBuffer$$anon$1.perform(InputOutputBuffer.scala:88)
    at flatTap @ skunk.net.protocol.Unroll.unroll(Unroll.scala:86)
    at flatMap @ fs2.io.net.tls.TLSEngine$$anon$1.unwrap(TLSEngine.scala:160)
    at get @ skunk.util.Pool$.free$1(Pool.scala:156)
    at map @ fs2.io.net.tls.InputOutputBuffer$$anon$1.inputRemains(InputOutputBuffer.scala:124)
    at map @ fs2.io.net.tls.TLSEngine$$anon$1.unwrapThenTakeUnwrapped(TLSEngine.scala:189)
    at ifM$extension @ fs2.io.net.tls.TLSEngine$$anon$1.unwrapThenTakeUnwrapped(TLSEngine.scala:189)
    at flatMap @ fs2.io.net.tls.TLSEngine$$anon$1.read0(TLSEngine.scala:134)
Caused by: java.lang.IndexOutOfBoundsException
    at java.nio.Buffer.checkIndex(Buffer.java:687)
    at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:169)
    at sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(SSLEngineInputRecord.java:113)
    at sun.security.ssl.SSLEngineInputRecord.bytesInCompletePacket(SSLEngineInputRecord.java:64)
    at sun.security.ssl.SSLEngineImpl.readRecord(SSLEngineImpl.java:557)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:454)
    at sun.security.ssl.SSLEngineImpl.unwrap(SSLEngineImpl.java:433)
    at javax.net.ssl.SSLEngine.unwrap(SSLEngine.java:637)
    at fs2.io.net.tls.TLSEngine$$anon$1.$anonfun$unwrap$1(TLSEngine.scala:158)
    at fs2.io.net.tls.InputOutputBuffer$$anon$1.$anonfun$perform$3(InputOutputBuffer.scala:92)
    at cats.effect.IOFiber.runLoop(IOFiber.scala:255)
    at cats.effect.IOFiber.execR(IOFiber.scala:1317)
    at cats.effect.IOFiber.run(IOFiber.scala:112)
    at cats.effect.unsafe.WorkerThread.run(WorkerThread.scala:555)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant