I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Unverified Commit a80ea644 authored by zzz's avatar zzz
Browse files

Streaming: Prevent AIOOBE when verifying large signed packets

(prep for PQ)
parent a922c1cc
No related branches found
No related tags found
No related merge requests found
Pipeline #2228 passed
...@@ -792,7 +792,7 @@ class Packet { ...@@ -792,7 +792,7 @@ class Packet {
int size = writtenSize(); int size = writtenSize();
if (buffer == null) if (buffer == null || size > buffer.length)
buffer = new byte[size]; buffer = new byte[size];
if (isFlagSet(FLAG_SIGNATURE_OFFLINE)) { if (isFlagSet(FLAG_SIGNATURE_OFFLINE)) {
if (_transientExpires < ctx.clock().now()) { if (_transientExpires < ctx.clock().now()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment