mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-03-24 03:18:13 +05:00
LCEMP RCE fixes
Based on commit d017bfc30a68888bf5c79b23cf5c4f607cf828bf
This commit is contained in:
@@ -21,6 +21,7 @@ public:
|
||||
void load(DataInput *dis, int tagDepth)
|
||||
{
|
||||
int length = dis->readInt();
|
||||
if (length < 0 || length > 2 * 1024 * 1024) length = 0;
|
||||
|
||||
if ( data.data ) delete[] data.data;
|
||||
data = byteArray(length);
|
||||
|
||||
Reference in New Issue
Block a user