minor fixes relating to nonce overflows, size checks, etc.

This commit is contained in:
2026-05-25 12:22:33 +02:00
parent b64d9c4498
commit 60795c60d8
5 changed files with 38 additions and 6 deletions

View File

@@ -87,6 +87,10 @@ namespace ColumnLynx {
void incrementSendCount() {
std::unique_lock lock(mMutex);
if (mClientState->send_cnt == std::numeric_limits<uint64_t>::max()) {
Utils::error("ClientSession: send counter overflow detected");
return;
}
mClientState->send_cnt++;
}