1
0
mirror of https://github.com/php/php-src.git synced 2026-03-30 04:02:19 +02:00
Files
Niels Dossche 847d1401a0 Fix GH-17208: bug64539-status-json-encoding.phpt fail on 32-bits
The reason this breaks is because of a type mismatch.
The following line uses fields of the timeval struct which are both 8 bytes on
Alpine 32-bit, which results in a computed value of also 8 bytes:
b09ed9a0f2/sapi/fpm/fpm/fpm_status.c (L611)

However, it is passed to a format string which expects 4 bytes
(`unsigned long` and thus the `%lu` format specifier is 4 bytes on Alpine 32-bit),
resulting in argument corruption.
Since the value is generally small, truncating to 4 bytes is sufficient to fix this.

Closes GH-17286.
2024-12-27 21:48:15 +01:00
..
2022-08-28 23:24:23 +01:00
2024-06-16 12:23:15 +01:00
2022-08-28 23:24:23 +01:00
2022-08-28 23:24:23 +01:00
2022-07-10 23:21:14 +01:00
2023-11-03 17:17:52 +00:00
2022-08-28 23:35:46 +01:00
2022-08-28 23:24:23 +01:00
2021-11-24 16:13:34 +03:00
2024-11-02 19:37:28 +01:00