mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-16 22:43:51 +00:00
Port over RCE Patches from LCEMP (#1023)
* LCEMP RCE Fixes WIP
Based on d017bfc30a
* 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:
parent
a358a3caae
commit
bda3b1078a
32 changed files with 372 additions and 203 deletions
|
|
@ -18,7 +18,7 @@ UpdateGameRuleProgressPacket::UpdateGameRuleProgressPacket(ConsoleGameRules::EGa
|
|||
m_auxValue = auxValue;
|
||||
m_dataTag = dataTag;
|
||||
|
||||
if(dataLength > 0)
|
||||
if (dataLength > 0 && dataLength <= 65536)
|
||||
{
|
||||
m_data = byteArray(dataLength);
|
||||
memcpy(m_data.data,data,dataLength);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue