wotwot / haxevideo

Automatically exported from code.google.com/p/haxevideo
0 stars 0 forks source link

Long uptime results in i.readUInt32B(); overflow #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Have an uptime of at least 194:13:xx (current lower bound observed
unscientifically)
2. Try to establish a net connection and handshake
3.

What is the expected output? What do you see instead?

    public function readHandshake() {
        var uptime = i.readUInt32B(); //Overflow happens on this line.
        var ping = i.readUInt32B();
        return i.read(HANDSHAKE_SIZE - 8);
    }

[2008-01-30 23:57:13] Overflow
Called from server/RealtimeServer.hx line 121
Called from server/RealtimeServer.hx line 334
Called from server/Server.hx line 47
Called from server/Client.hx line 781
Called from format/Rtmp.hx line 127
Called from neko/io/Input.hx line 216

What version of the product are you using? On what operating system?
The server is linux, the client is on windows vista.

Please provide any additional information below.

I think this may have something to do with the issue described in this blog
post: http://www.cuppadev.co.uk/2008/01/27/what-not-to-write-in-haxe/ 

Original issue reported on code.google.com by Nay...@gmail.com on 31 Jan 2008 at 1:08

GoogleCodeExporter commented 9 years ago
Fixed on SVN today

Original comment by ncanna...@gmail.com on 11 Feb 2008 at 8:41

GoogleCodeExporter commented 9 years ago
thank you

Original comment by Nay...@gmail.com on 11 Feb 2008 at 6:45