1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 03:31:17 +01:00

Avoid integer overflow

This commit is contained in:
Daniil Gentili 2023-08-29 10:05:58 +02:00
parent 3a3e75fe01
commit 892855f399
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 2 additions and 1 deletions

2
docs

@ -1 +1 @@
Subproject commit 4b1bbd6817f08e10a68105fa226e646c1b89aa1a
Subproject commit 9d0080f3478c816d52dae55ee2c7dc6ab13d63f7

View File

@ -238,6 +238,7 @@ final class MessageHandler
return false;
}
$this->acksForReceived |= 1 << ($diff+1);
$this->acksForReceived &= 0xFFFF_FFFF;
} else {
Logger::log("Packet $packet_seq_no is out of order and too late");
return false;