Ticket #6581 (closed defect: fixed)
PHP web API integer overflow with timestamp returning functions
|Reported by:||Sm0k1n||Owned by:|
|Version:||VirtualBox 3.1.6||Keywords:||php, time, integer, overflow|
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.