From 025cdfb201ce8cb3c5616016b48803d62236e3de Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Thu, 27 Dec 2012 07:11:37 +0000 Subject: ProtoProxy: Fixed 1.4.6 compatibility with vehicles, logging for entity metadata. Also removed logging to console, it was slowing the program too much. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1108 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/ByteBuffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source') diff --git a/source/ByteBuffer.cpp b/source/ByteBuffer.cpp index 028b4f08a..6d630068a 100644 --- a/source/ByteBuffer.cpp +++ b/source/ByteBuffer.cpp @@ -316,6 +316,11 @@ bool cByteBuffer::ReadBEUTF16String16(AString & a_Value) { return false; } + if (Length < 0) + { + ASSERT(!"Negative string length? Are you sure?"); + return true; + } return ReadUTF16String(a_Value, Length); } -- cgit v1.2.3