Ticket #6581 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

PHP web API integer overflow with timestamp returning functions

Reported by: Sm0k1n Owned by:
Priority: minor Component: webservices
Version: VirtualBox 3.1.6 Keywords: php, time, integer, overflow
Cc: Guest type: other
Host type: other


I have so far found three occurences of an integer overflow when dealing with timestamps.




From the vboxServiceWrappers.php file I can see that the results from the methods are cast to an integer and PHP can't store an integer that big so the wrong time is returned. Fixing it is as simple as casting the results to float rather than int.

Change History

comment:1 Changed 6 years ago by mjlucas

Should be fixed in 3.1.8 / 3.2

See for types chosen for various XIDL values. Have changed large integers to floats as per php documentation.

comment:2 Changed 6 years ago by sandervl73

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use