Decrease string read limit

This commit is contained in:
Juan Cruz Linsalata 2021-05-21 15:30:04 -03:00 committed by GitHub
parent 5a5c67d099
commit 23fef3dc13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ index 93d17f6b..dd663e1d 100644
public static String readString(ByteBuf buf) public static String readString(ByteBuf buf)
{ {
- return readString( buf, Short.MAX_VALUE ); - return readString( buf, Short.MAX_VALUE );
+ return readString( buf, 4096 ); // FlameCord + return readString( buf, 2048 ); // FlameCord
} }
public static String readString(ByteBuf buf, int maxLen) public static String readString(ByteBuf buf, int maxLen)