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:
parent
3a3e75fe01
commit
892855f399
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 4b1bbd6817f08e10a68105fa226e646c1b89aa1a
|
||||
Subproject commit 9d0080f3478c816d52dae55ee2c7dc6ab13d63f7
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user