Skip to content

Commit 04bc509

Browse files
committed
fixed missing offset inclusion
1 parent 82fd90a commit 04bc509

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ else if (len == 0)
9696
int bytesFromLookahead = Math.min(bytesRead, lookAhead.length);
9797
for (int i = 0; i < bytesFromLookahead; i++)
9898
{
99-
b[i] = (byte)lookAhead[(bufPtr + i) % lookAhead.length];
99+
b[off + i] = (byte)lookAhead[(bufPtr + i) % lookAhead.length];
100100
}
101101

102102
// write tail of readBuffer to lookahead

0 commit comments

Comments
 (0)