[php-src] Issue #16050: integer overflow tm2unixtime.c:480:50

From: Date: Wed, 25 Sep 2024 14:00:48 +0000
Subject: [php-src] Issue #16050: integer overflow tm2unixtime.c:480:50
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247898@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/16050 Author: chongwick ### Description The following code: ```php <?php $vars = array( "DateTime" => new DateTime(),); $vars["DateTime"]->setTime(PHP_INT_MAX, 1, 2, PHP_FLOAT_MIN); ?> ``` Resulted in this output: ``` /home/dan/php-8.3.9/ext/date/lib/tm2unixtime.c:480:50: runtime error: signed integer overflow: 384307168202302316 * 43200 cannot be represented in type 'long long int' ``` ### PHP Version 8.3.9 ### Operating System _No response_

« previous php.bugs (#247898) next »