From 6a520a876b034c57f6aacfcdf3ce5734c43544cd Mon Sep 17 00:00:00 2001 From: Ali <> Date: Mon, 13 Dec 2021 18:06:14 +0400 Subject: [PATCH] Fix integer overflow crash --- submodules/Postbox/Sources/Postbox.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/Postbox/Sources/Postbox.swift b/submodules/Postbox/Sources/Postbox.swift index 1b1c5a0d54..28d04fa502 100644 --- a/submodules/Postbox/Sources/Postbox.swift +++ b/submodules/Postbox/Sources/Postbox.swift @@ -1639,7 +1639,7 @@ final class PostboxImpl { } } - if message.timestamp + 60 * 10 > timestampForAbsoluteTimeBasedOperations { + if Int64(message.timestamp) + 60 * 10 > Int64(timestampForAbsoluteTimeBasedOperations) { return .skip } var flags = StoreMessageFlags(message.flags)