Skip to content

Commit 12bdba6

Browse files
committed
Fix wrap() null-check loop bound
1 parent 87fec31 commit 12bdba6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/java/com/wolfssl/provider/jsse/WolfSSLEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ public synchronized SSLEngineResult wrap(ByteBuffer[] in, int ofst, int len,
829829
throw new IndexOutOfBoundsException();
830830
}
831831

832-
for (i = ofst; i < len; ++i) {
832+
for (i = ofst; i < ofst + len; ++i) {
833833
if (in[i] == null) {
834834
throw new SSLException("SSLEngine.wrap() bad arguments");
835835
}

0 commit comments

Comments
 (0)