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/ComplexItemDataPacket.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Minecraft.World/ComplexItemDataPacket.cpp') diff --git a/Minecraft.World/ComplexItemDataPacket.cpp b/Minecraft.World/ComplexItemDataPacket.cpp index 98eeb9de..38c39cb6 100644 --- a/Minecraft.World/ComplexItemDataPacket.cpp +++ b/Minecraft.World/ComplexItemDataPacket.cpp @@ -32,12 +32,7 @@ void ComplexItemDataPacket::read(DataInputStream *dis) //throws IOException itemType = dis->readShort(); itemId = dis->readShort(); - int dataLength = dis->readShort() & 0xffff; - if (dataLength > 32767) - { - dataLength = 0; - } - data = charArray(dataLength); + data = charArray(dis->readUnsignedShort() & 0xffff); dis->readFully(data); } -- cgit v1.2.3