mirror of
https://github.com/LCEMP/LCEMP.git
synced 2026-06-03 17:54:45 +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:
@@ -296,6 +296,10 @@ wstring DataInputStream::readUTF()
|
||||
int b = stream->read();
|
||||
unsigned short UTFLength = (unsigned short) (((a & 0xff) << 8) | (b & 0xff));
|
||||
|
||||
const unsigned short MAX_UTF_LENGTH = 32767;
|
||||
if( UTFLength > MAX_UTF_LENGTH )
|
||||
return outputString;
|
||||
|
||||
//// 4J Stu - I decided while writing DataOutputStream that we didn't need to bother using the UTF8 format
|
||||
//// used in the java libs, and just write in/out as wchar_t all the time
|
||||
|
||||
|
||||
Reference in New Issue
Block a user