From a358a3caaee2a4781f910cfb440bd822ae73a7e5 Mon Sep 17 00:00:00 2001 From: Loki Rautio Date: Mon, 9 Mar 2026 04:46:56 -0500 Subject: Revert accidentally pushed "LCEMP RCE fixes" This reverts commit d557ca2dfba5ffcca99ceb41b07d149f871964b5. --- Minecraft.World/CustomPayloadPacket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Minecraft.World/CustomPayloadPacket.cpp') diff --git a/Minecraft.World/CustomPayloadPacket.cpp b/Minecraft.World/CustomPayloadPacket.cpp index e86f01de..46fde5aa 100644 --- a/Minecraft.World/CustomPayloadPacket.cpp +++ b/Minecraft.World/CustomPayloadPacket.cpp @@ -43,7 +43,7 @@ void CustomPayloadPacket::read(DataInputStream *dis) identifier = readUtf(dis, 20); length = dis->readShort(); - if (length > 0 && length <= Short::MAX_VALUE) + if (length > 0 && length < Short::MAX_VALUE) { if(data.data != nullptr) { -- cgit v1.2.3