From c96447007e1f6ee0b4cb40195b0af6bd950f8e53 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Tue, 20 Nov 2012 20:44:47 +0000 Subject: Aggressive debug mode cByteBuffer validity checking. Hopefully fixed the "BytesToEndOfBuffer" assert. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1057 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Protocol/Protocol132.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/Protocol/Protocol132.cpp') diff --git a/source/Protocol/Protocol132.cpp b/source/Protocol/Protocol132.cpp index 8471b5909..3e28e471d 100644 --- a/source/Protocol/Protocol132.cpp +++ b/source/Protocol/Protocol132.cpp @@ -25,8 +25,10 @@ { \ if (!m_ReceivedData.Proc(Var)) \ { \ + m_ReceivedData.CheckValid(); \ return PARSE_INCOMPLETE; \ } \ + m_ReceivedData.CheckValid(); \ } -- cgit v1.2.3