Skip to content

Commit 7278353

Browse files
committed
Fix unwrap() null-check loop bound
1 parent 12bdba6 commit 7278353

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
@@ -1328,7 +1328,7 @@ public synchronized SSLEngineResult unwrap(ByteBuffer in, ByteBuffer[] out,
13281328
throw new IndexOutOfBoundsException();
13291329
}
13301330

1331-
for (i = ofst; i < length; ++i) {
1331+
for (i = ofst; i < ofst + length; ++i) {
13321332
if (out[i] == null) {
13331333
throw new IllegalArgumentException(
13341334
"SSLEngine.unwrap() bad arguments");

0 commit comments

Comments
 (0)