We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82fd90a commit 04bc509Copy full SHA for 04bc509
pg/src/main/java/org/bouncycastle/openpgp/PGPEncryptedData.java
@@ -96,7 +96,7 @@ else if (len == 0)
96
int bytesFromLookahead = Math.min(bytesRead, lookAhead.length);
97
for (int i = 0; i < bytesFromLookahead; i++)
98
{
99
- b[i] = (byte)lookAhead[(bufPtr + i) % lookAhead.length];
+ b[off + i] = (byte)lookAhead[(bufPtr + i) % lookAhead.length];
100
}
101
102
// write tail of readBuffer to lookahead
0 commit comments