mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
Еще один readString(0)
This commit is contained in:
parent
1c4720256a
commit
1595a64c61
3 changed files with 4 additions and 2 deletions
|
@ -61,7 +61,7 @@ public void reply() throws Exception {
|
|||
if (isClient)
|
||||
client = input.readString(SerializeLimits.MAX_CLIENT);
|
||||
int auth_id = input.readInt();
|
||||
String hwid_str = input.readString(0);
|
||||
String hwid_str = input.readString(SerializeLimits.MAX_HWID_STR);
|
||||
if (auth_id + 1 > server.config.authProvider.length || auth_id < 0) auth_id = 0;
|
||||
byte[] encryptedPassword = input.readByteArray(SecurityHelper.CRYPTO_MAX_LENGTH);
|
||||
// Decrypt password
|
||||
|
|
|
@ -17,4 +17,6 @@ public class SerializeLimits {
|
|||
public static final byte EXPECTED_BYTE = 0b01010101;
|
||||
@LauncherAPI
|
||||
public static final int MAX_DIGEST = 512;
|
||||
@LauncherAPI
|
||||
public static final int MAX_HWID_STR = 1024;
|
||||
}
|
||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
|||
Subproject commit 2a09f7b18dde4ea6841e6a141e7cfea8f93d3b29
|
||||
Subproject commit ed991077019e49d7a91f313e3bc9360bb6036baa
|
Loading…
Reference in a new issue