Skip to content

Commit 64026c2

Browse files
author
gefeili
committed
Simplify the fix
1 parent 55bea31 commit 64026c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/java/org/bouncycastle/crypto/DefaultBufferedBlockCipher.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,8 @@ public int processBytes(
246246
if ((inOff <= outOff && outOff <= inEnd) ||
247247
(outOff <= inOff && inOff <= outEnd))
248248
{
249-
byte[] overlap = new byte[len];
250-
System.arraycopy(in, inOff, overlap, 0, len);
251-
in = overlap;
249+
in = new byte[len];
250+
System.arraycopy(out, inOff, in, 0, len);
252251
inOff = 0;
253252
}
254253
}

0 commit comments

Comments
 (0)