Open
Description
Description
There is a potential security issue when converting clock_t
to zend_long
that could lead to unpredictable results on different platforms. Platform dependencies of clock_t
size: The size of clock_t
is not fixed by the C standard, and may differ between systems (32-bit and 64-bit). Sign extension: If clock_t
is smaller than zend_long
, and clock_t
is a signed type, then sign extension may occur when converting to zend_long
, leading to incorrect interpretation of the values.
Lines 386 to 390 in 28a083b
Found using SVACE
Author D. Chizhmak
PHP Version
PHP 8.3+
Operating System
No response