Skip to content

Commit 1edeadf

Browse files
committed
Fix wrap() null-check loop bound
1 parent 35121f6 commit 1edeadf

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
@@ -828,7 +828,7 @@ public synchronized SSLEngineResult wrap(ByteBuffer[] in, int ofst, int len,
828828
throw new IndexOutOfBoundsException();
829829
}
830830

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

0 commit comments

Comments
 (0)