[php-src] PR #21638: Fix GH-18422: int overflow in php_date_llabs
| From: | iliaal | Date: | Sat, 04 Apr 2026 15:03:05 +0000 |
| Subject: | [php-src] PR #21638: Fix GH-18422: int overflow in php_date_llabs | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-35552@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/21638
Author: iliaal
php_date_llabs negates with -i, which is UB when i is
LLONG_MIN. Cast to unsigned long long before negating and changed the
return type to match. Updated Y/x/X format call sites from %lld to %llu.
Fixes #18422