mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-12-26 02:27:57 +01:00
Decrease string read limit
This commit is contained in:
parent
5a5c67d099
commit
23fef3dc13
@ -13,7 +13,7 @@ index 93d17f6b..dd663e1d 100644
|
||||
public static String readString(ByteBuf buf)
|
||||
{
|
||||
- return readString( buf, Short.MAX_VALUE );
|
||||
+ return readString( buf, 4096 ); // FlameCord
|
||||
+ return readString( buf, 2048 ); // FlameCord
|
||||
}
|
||||
|
||||
public static String readString(ByteBuf buf, int maxLen)
|
||||
|
Loading…
Reference in New Issue
Block a user