Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dow.c:157:25 integer overflow #16865

Open
chongwick opened this issue Nov 19, 2024 · 0 comments
Open

dow.c:157:25 integer overflow #16865

chongwick opened this issue Nov 19, 2024 · 0 comments

Comments

@chongwick
Copy link

Description

The following code:

<?php
$date = date_create();
date_isodate_set($date, date('Y'), PHP_INT_MAX);

Resulted in this output:

/home/dan/php-src/ext/date/lib/dow.c:157:25: runtime error: signed integer overflow: 9223372036854775806 * 7 cannot be represented in type 'long long int'

PHP Version

PHP 8.4-dev

Operating System

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants