[php-src] Issue #16051: integer overflow tm2unixtime.c:211:13

From: Date: Wed, 25 Sep 2024 14:05:22 +0000
Subject: [php-src] Issue #16051: integer overflow tm2unixtime.c:211:13
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247899@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/16051 Author: chongwick ### Description The following code: ```php <?php $timestamp = mktime(PHP_INT_MAX, 0, 0, 1, 1, 1970); ?> ``` Resulted in this output: ``` /home/dan/php-8.3.9/ext/date/lib/tm2unixtime.c:211:13: runtime error: signed integer overflow: 384307168203001793 * 10000 cannot be represented in type 'long long int' ``` ### PHP Version 8.3.9 ### Operating System _No response_

« previous php.bugs (#247899) next »