session-android/src/org/thoughtcrime/securesms/service
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
..
AccountAuthenticatorService.java Support for populating contacts DB with TS account type. 2015-07-16 11:15:56 -07:00
AccountVerificationTimeoutException.java Initial GCM registration 2013-05-06 08:40:55 -07:00
ApplicationMigrationService.java Migrate from SQLite and ciphertext blobs to SQLCipher + KeyStore 2018-01-30 17:27:05 -08:00
BootReceiver.java Fix service calls that won't foreground 2017-12-20 11:27:57 -08:00
ContactsSyncAdapterService.java Support for populating contacts DB with TS account type. 2015-07-16 11:15:56 -07:00
DirectoryRefreshListener.java Ensure notifications for new users won't be generated first fetch 2017-11-30 10:26:41 -08:00
DirectShareService.java Migrate from SQLite and ciphertext blobs to SQLCipher + KeyStore 2018-01-30 17:27:05 -08:00
ExpirationListener.java Support for disappearing messages 2016-08-28 17:03:23 -07:00
ExpiringMessageManager.java Migrate from SQLite and ciphertext blobs to SQLCipher + KeyStore 2018-01-30 17:27:05 -08:00
GenericForegroundService.java Add determinte progress and foreground service for sqlcipher migration 2018-02-01 16:01:24 -08:00
KeyCachingService.java Migrate to Android fingerprints and auth for Signal screen lock 2018-03-05 16:11:49 -08:00
LocalBackupListener.java Support for full backup/restore to sdcard 2018-03-05 16:11:49 -08:00
MessageRetrievalService.java Use startForegroundService instead of startService on Android 8 2017-11-30 10:26:41 -08:00
MmsListener.java Support for dual-sim SMS/MMS functionality 2016-02-09 16:53:15 -08:00
PanicResponderListener.java Fix service calls that won't foreground 2017-12-20 11:27:57 -08:00
PersistentAlarmManagerListener.java Start increasing frequency of signed prekey rotation 2017-01-06 09:19:58 -08:00
PersistentConnectionBootListener.java Use startForegroundService instead of startService on Android 8 2017-11-30 10:26:41 -08:00
QuickResponseService.java Fix some potential integer overflows for expiration time 2018-03-07 09:55:24 -08:00
RotateSignedPreKeyListener.java Start increasing frequency of signed prekey rotation 2017-01-06 09:19:58 -08:00
SmsDeliveryListener.java Transition the outbound pipeline to JobManager jobs. 2014-11-12 15:26:25 -08:00
SmsListener.java Remove dead code 2017-11-30 10:26:41 -08:00
UpdateApkReadyListener.java Support for website distribution build with auto-updating APK 2017-02-27 23:53:36 -08:00
UpdateApkRefreshListener.java Support for website distribution build with auto-updating APK 2017-02-27 23:53:36 -08:00
WebRtcCallService.java Support for custom call ringtone selection and per-chat ringtones 2018-03-05 16:11:49 -08:00