Fix integer overflow crash

This commit is contained in:
Ali 2021-12-13 18:06:14 +04:00
parent aa1b009cea
commit 6a520a876b

View File

@ -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)