Port over RCE Patches from LCEMP (#1023)
* LCEMP RCE Fixes WIP Based on https://github.com/LCEMP/LCEMP/commit/d017bfc30a68888bf5c79b23cf5c4f607cf828bf * Update to LCEMP's ByteArrayIO version Fixes compilation since ours was missing some revisions from LCEMP * Add additional safety checks missed in first pass * Remove duplicate recipe count check
This commit is contained in:
@@ -35,6 +35,8 @@ public:
|
||||
void load(DataInput *dis, int tagDepth)
|
||||
{
|
||||
int length = dis->readInt();
|
||||
if (length < 0 || length > 65536)
|
||||
length = 0;
|
||||
|
||||
if ( data.data ) delete[] data.data;
|
||||
data = intArray(length);
|
||||
|
||||
Reference in New Issue
Block a user