session-android/src/org/thoughtcrime/securesms/notifications
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
..
AbstractNotificationBuilder.java Fix notification ringtone problems 2017-12-19 14:42:00 -08:00
AndroidAutoHeardReceiver.java More MasterSecret cleanup 2018-02-01 19:22:48 -08:00
AndroidAutoReplyReceiver.java Fix some potential integer overflows for expiration time 2018-03-07 09:55:24 -08:00
DeleteNotificationReceiver.java Run all AsyncTasks on thread pool executor 2017-10-23 13:03:32 -07:00
FailedNotificationBuilder.java Reorganize preference widgets 2017-10-01 22:36:52 -07:00
MarkReadReceiver.java More MasterSecret cleanup 2018-02-01 19:22:48 -08:00
MessageNotifier.java Support for custom call ringtone selection and per-chat ringtones 2018-03-05 16:11:49 -08:00
MultipleRecipientNotificationBuilder.java Reorganize preference widgets 2017-10-01 22:36:52 -07:00
NotificationItem.java Switch MMS groups to use the group database infrastructure 2017-08-28 10:30:50 -07:00
NotificationState.java Support for custom call ringtone selection and per-chat ringtones 2018-03-05 16:11:49 -08:00
PendingMessageNotificationBuilder.java Reorganize preference widgets 2017-10-01 22:36:52 -07:00
RemoteReplyReceiver.java Fix some potential integer overflows for expiration time 2018-03-07 09:55:24 -08:00
SingleRecipientNotificationBuilder.java Migrate from SQLite and ciphertext blobs to SQLCipher + KeyStore 2018-01-30 17:27:05 -08:00