madmaxoft@gmail.com
95a94c3db8
ByteBuffer: Fixed buffer overrun possibility.
...
http://forum.mc-server.org/showthread.php?tid=633&pid=5473#pid5473
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1063 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22 20:51:06 +00:00
madmaxoft@gmail.com
8191ed3b93
More ByteBuffer checks: Is it used from a single thread only?
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1062 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-22 20:42:33 +00:00
madmaxoft@gmail.com
c96447007e
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
2012-11-20 20:44:47 +00:00
madmaxoft@gmail.com
8f637d401d
Fixed a bug introduced in rev 1023 (ThuGie's crash)
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1029 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-10 14:02:20 +00:00
madmaxoft
99a6252d6a
Hotfix for ThuGie's crash, with a sanity check in debug mode.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1023 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-11-07 10:42:21 +00:00
madmaxoft@gmail.com
2c9e187189
Fixed up a few valgrind warnings
...
( http://forum.mc-server.org/showthread.php?tid=598&pid=5071#pid5071 )
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1010 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-10-25 19:20:29 +00:00
madmaxoft@gmail.com
c3f82c53db
Fixed slot parsing in 1.2.5 causing weird behavior ( http://forum.mc-server.org/showthread.php?tid=551&pid=4413#pid4413 )
...
Also added some asserts into ByteBuffer so that this won't happen again.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@842 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-06 18:17:47 +00:00
madmaxoft@gmail.com
5e5b87a187
Debugging in cByteBuffer::Write(); added the ReadAgain() method to allow ProtoProxy re-send the data it has parsed.
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@833 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-04 19:06:46 +00:00
madmaxoft@gmail.com
38efe73154
Added writing support to cByteBuffer (will be used by ProtoProxy)
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@825 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-09-02 19:38:37 +00:00
madmaxoft@gmail.com
66f4c9e0c0
Cut out all packet handling to a separate cProtocol descendant
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@796 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-27 17:31:16 +00:00
madmaxoft@gmail.com
2691e8daed
Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.
...
This breaks plugin API! Plugins need to modify their hook functions to match those used in the Core plugin
git-svn-id: http://mc-server.googlecode.com/svn/trunk@750 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-18 09:56:28 +00:00
madmaxoft@gmail.com
70a4ca5bc1
Packets now parse themselves from a cByteBuffer object (1st part of packeting rewrite, http://forum.mc-server.org/showthread.php?tid=524 )
...
git-svn-id: http://mc-server.googlecode.com/svn/trunk@744 0a769ca7-a7f5-676a-18bf-c427514a06d6
2012-08-17 10:18:07 +00:00