fixed possible overflow

This commit is contained in:
orignal
2026-06-13 10:37:32 -04:00
parent 5d216e232f
commit e51fef8c9c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -2004,7 +2004,7 @@ namespace transport
if (*ranges > lastPacketNum) break;
lastPacketNum -= *ranges; ranges++; // nacks
if (*ranges > lastPacketNum + 1) break;
firstPacketNum = lastPacketNum - *ranges + 1; ranges++; // acks
firstPacketNum = lastPacketNum + 1 - *ranges; ranges++; // acks
len -= 2;
HandleAckRange (firstPacketNum, lastPacketNum, 0);
}