Signal-Android/src/org/thoughtcrime/securesms/jobs
Sam Lanning 69f180a5ec Fix some potential integer overflows for expiration time
In a number of locations in the code, there were conversions of message
expiration times from seconds to milliseconds, and then assigned to `long`
contexts. However these conversions were being done as integer multiplication
rather than long multiplication, meaning that there was a potential for
overflows.

Specifically, the maximum value that could be represented before overflowing
was (2^31 / 1000 / 60 / 60 / 24) days = 24.8 days (< 1 month). Luckily the
current allowed timeouts are all less than that value, but this fix would
remove the artificial restriction, effectively allowing values of 1000x greater
(68 years), at least for android.

Related #5775
Closes #7338
2018-03-07 09:55:24 -08:00
..
requirements
AttachmentDownloadJob.java
AttachmentFileNameJob.java
AvatarDownloadJob.java
CleanPreKeysJob.java
ContextJob.java
CreateSignedPreKeyJob.java
DirectoryRefreshJob.java
GcmRefreshJob.java
LocalBackupJob.java Support for full backup/restore to sdcard 2018-03-05 16:11:49 -08:00
MasterSecretJob.java
MmsDownloadJob.java
MmsReceiveJob.java
MmsSendJob.java
MultiDeviceBlockedUpdateJob.java
MultiDeviceContactUpdateJob.java
MultiDeviceGroupUpdateJob.java
MultiDeviceProfileKeyUpdateJob.java
MultiDeviceReadReceiptUpdateJob.java
MultiDeviceReadUpdateJob.java
MultiDeviceVerifiedUpdateJob.java
PushContentReceiveJob.java
PushDecryptJob.java Fix some potential integer overflows for expiration time 2018-03-07 09:55:24 -08:00
PushGroupSendJob.java
PushGroupUpdateJob.java
PushMediaSendJob.java
PushNotificationReceiveJob.java
PushReceivedJob.java
PushSendJob.java
PushTextSendJob.java
RefreshAttributesJob.java Support for Registration Lock PINs 2018-03-05 16:13:56 -08:00
RefreshPreKeysJob.java
RequestGroupInfoJob.java
RetrieveProfileAvatarJob.java
RetrieveProfileJob.java
RotateSignedPreKeyJob.java
SendJob.java
SendReadReceiptJob.java
SmsReceiveJob.java
SmsSendJob.java
SmsSentJob.java
TrimThreadJob.java
UpdateApkJob.java