mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:56:53 +00:00
Enforce key-ids fit in a positive signed 32-bit int
This commit is contained in:
1 parent
de5cb3370d
commit
b441fde213
2 files changed
+4
-4
No files matched your search
@@ -5,7 +5,7 @@
|
||||
package org.whispersystems.textsecuregcm.storage;
|
||||
|
||||
public class KeyIdUtil {
|
||||
public static final long MAX_KEY_ID = (1L << 32) - 1;
|
||||
public static final long MAX_KEY_ID = (1L << 31) - 1;
|
||||
public static final long MIN_KEY_ID = 0;
|
||||
private KeyIdUtil(){}
|
||||
|
||||
|
||||
Reference in new issue
Block a user