#40 Timeticks: overflow in Milliseconds

open-fixed
milans
None
5
2013-01-11
2013-01-08
Anonymous
No

TimeTicks.Milliseconds is a 64bit long but it behaves like a 32bit integer and will overflow (without an exception). Values that cannot fit into 32bit will have their largest bits removed (so 0x100000001 will become 0x1). (0x100000000 ms ~= 250 days)

TimeTicks.Value is correct for large values.

Example: read the uptime (oid 1.3.6.1.2.1.1.3.0) from 173.13.206.219 (community = public), it should be more than 300 days.

Discussion

  • milans

    milans - 2013-01-11

    Fixed in version 0.9.3

     
  • milans

    milans - 2013-01-11
    • assigned_to: nobody --> msinadinovic
    • status: open --> open-fixed