mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-03 19:54:59 +00:00
fix: add splitscreen, fix dlcs not loading, major RCE vuln fix on packet net, fix chunk loading on non-server clients, persistent saves
note: I changed how XUID works, player data might be wiped on old saves, save items on a chest or similar before trying to load old saves on new version
This commit is contained in:
@@ -123,7 +123,17 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
textureName = dis->readUTF();
|
||||
dwSkinID = (DWORD)dis->readInt();
|
||||
dwTextureBytes = (DWORD)dis->readShort();
|
||||
|
||||
short rawTextureBytes = dis->readShort();
|
||||
if(rawTextureBytes <= 0)
|
||||
{
|
||||
dwTextureBytes = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
dwTextureBytes = (DWORD)(unsigned short)rawTextureBytes;
|
||||
if(dwTextureBytes > 65536) dwTextureBytes = 0;
|
||||
}
|
||||
|
||||
if(dwTextureBytes>0)
|
||||
{
|
||||
@@ -136,7 +146,16 @@ void TextureAndGeometryPacket::read(DataInputStream *dis) //throws IOException
|
||||
}
|
||||
uiAnimOverrideBitmask = dis->readInt();
|
||||
|
||||
dwBoxC = (DWORD)dis->readShort();
|
||||
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
|
||||
}
|
||||
|
||||
if(dwBoxC>0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user