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/TextureAndGeometryPacket.cpp | 29 ++-------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'Minecraft.World/TextureAndGeometryPacket.cpp') diff --git a/Minecraft.World/TextureAndGeometryPacket.cpp b/Minecraft.World/TextureAndGeometryPacket.cpp index 1c920ee7..bf5eccdb 100644 --- a/Minecraft.World/TextureAndGeometryPacket.cpp +++ b/Minecraft.World/TextureAndGeometryPacket.cpp @@ -121,20 +121,7 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException { textureName = dis->readUTF(); dwSkinID = static_cast(dis->readInt()); - - short rawTextureBytes = dis->readShort(); - if (rawTextureBytes <= 0) - { - dwTextureBytes = 0; - } - else - { - dwTextureBytes = (DWORD)(unsigned short)rawTextureBytes; - if (dwTextureBytes > 65536) - { - dwTextureBytes = 0; - } - } + dwTextureBytes = static_cast(dis->readShort()); if(dwTextureBytes>0) { @@ -147,19 +134,7 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException } uiAnimOverrideBitmask = dis->readInt(); - short rawBoxC = dis->readShort(); - if (rawBoxC <= 0) - { - dwBoxC = 0; - } - else - { - dwBoxC = (DWORD)(unsigned short)rawBoxC; - if (dwBoxC > 256) - { - dwBoxC = 0; // sane limit for skin boxes - } - } + dwBoxC = static_cast(dis->readShort()); if(dwBoxC>0) { -- cgit v1.2.3