From e563f60153360ce3d7c90d6037f02f4f53779c4c Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 4 Mar 2026 22:36:31 +0300 Subject: [PATCH] AI fixes --- nfq2/protocol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nfq2/protocol.c b/nfq2/protocol.c index 676c7ba..d08f89f 100644 --- a/nfq2/protocol.c +++ b/nfq2/protocol.c @@ -1309,12 +1309,13 @@ bool QUICDefragCrypto(const uint8_t *clean,size_t clean_len, uint8_t *defrag,siz // remove exact duplicates early to save cpu for(i=0;i QUIC_MAX_CID_LENGTH) return false; offset += 1 + data[offset]; + if (offset>=len) return false; + // SCID if (data[offset] > QUIC_MAX_CID_LENGTH) return false; offset += 1 + data[offset];