[php-src] Issue #16048: integer overflow tm2unixtime.c:481:12
| From: | chongwick | Date: | Wed, 25 Sep 2024 13:43:40 +0000 |
| Subject: | [php-src] Issue #16048: integer overflow tm2unixtime.c:481:12 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-247897@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/16048
Author: chongwick
### Description
The following code:
```php
<?php
echo date_sun_info(PHP_INT_MIN, 9, 90);
?>
```
Resulted in this output:
```
/home/dan/php-8.3.9/ext/date/lib/tm2unixtime.c:481:12: runtime error: signed integer overflow:
-4611686018427403200 + -4611686018427403200 cannot be represented in type 'long long int'
```
### PHP Version
8.3.9
### Operating System
_No response_