1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 12:13:02 +02:00
Files
Christoph M. Becker 2bdf2f9100 Fix GH-16433: Large values for openssl_csr_sign() $days overflow
The `offset_sec` parameter of `X509_gmtime_adj()` expects a `long`, but
the `$days` parameter of `openssl_csr_sign()` a `zend_long`.  We must
avoid signed integer overflow (UB), but also must not silently truncate.
Thus we check the given `$days` for the permissible range, and bail out
otherwise.

Closes GH-16437.
2024-10-16 11:08:02 +02:00
..
2021-06-11 11:57:42 +02:00
2022-06-01 11:46:47 +02:00
2022-06-01 11:46:47 +02:00
2024-07-03 19:17:13 +02:00
2021-10-08 14:07:05 +02:00
2022-06-01 11:46:47 +02:00