VirtualBox

Ticket #6581 (closed defect: fixed)

Opened 4 years ago

Last modified 4 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

Description

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

IHost::UTCTime

IRemoteDisplayInfo::beginTime  

IRemoteDisplayInfo::endTime  

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 4 years ago by mjlucas

Should be fixed in 3.1.8 / 3.2

See  http://www.virtualbox.org/browser/trunk/src/VBox/Main/webservice/types.txt for types chosen for various XIDL values. Have changed large integers to floats as per php documentation.

comment:2 Changed 4 years ago by sandervl73

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

www.oracle.com
ContactPrivacy policyTerms of Use