Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Very Important MessageStream class bug!! #86

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
When i started proxy and used sewer grate much timer i got an error.

What is the expected output? What do you see instead?
Length < Position.

in class MessageStream
function Read()

        public void Read(byte[] buffer, int offset, int count)
        {
            if (_position + count > _length)
                throw new Exception("Length < Position."); <<here

            Array.Copy(_buffer, _position, buffer, 0, count);
            _position += count;
        }

What version of the product are you using? On what operating system?
r458, winxp sp2

Original issue reported on code.google.com by beziakcpp@gmail.com on 18 Dec 2008 at 8:38

GoogleCodeExporter commented 9 years ago
Do you know what packet are causing this?

Original comment by brunodun...@gmail.com on 18 Dec 2008 at 2:23

GoogleCodeExporter commented 9 years ago
i dont know, i only know that the error appears when i go up&down&up&down by 
sewer
grate in thais

Original comment by beziakcpp@gmail.com on 18 Dec 2008 at 3:24

GoogleCodeExporter commented 9 years ago
I uploaded a fix for this.. please test it out.

Original comment by brunodun...@gmail.com on 18 Dec 2008 at 3:59