Еще один readString(0)

This commit is contained in:
Gravit 2019-01-02 21:11:21 +07:00
parent 1c4720256a
commit 1595a64c61
No known key found for this signature in database
GPG key ID: 061981E1E85D3216
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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;
}

@ -1 +1 @@
Subproject commit 2a09f7b18dde4ea6841e6a141e7cfea8f93d3b29
Subproject commit ed991077019e49d7a91f313e3bc9360bb6036baa