From e27f705eebc66aa541df4f08da635170dbcbbcad Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 4 Oct 2026 08:52:57 -0400 Subject: [PATCH] reserve space for very last ack range --- libi2pd/SSU2Session.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/SSU2Session.h b/libi2pd/SSU2Session.h index 180e95cb..90981011 100644 --- a/libi2pd/SSU2Session.h +++ b/libi2pd/SSU2Session.h @@ -416,7 +416,7 @@ namespace transport std::unordered_map m_ReceivedI2NPMsgIDs; // msgID -> timestamp in seconds uint64_t m_LastResendTime, m_LastResendAttemptTime, m_NextRouterInfoResendTime; // in milliseconds int m_NumRanges; - uint8_t m_Ranges[SSU2_MAX_NUM_ACK_RANGES*2]; // ranges sent with previous Ack if any + uint8_t m_Ranges[(SSU2_MAX_NUM_ACK_RANGES + 1)*2]; // ranges sent with previous Ack if any }; inline uint64_t CreateHeaderMask (const uint8_t * kh, const uint8_t * nonce)