Song, Jiaying (CN) via Postfix-devel:
> From: Jiaying Song <[email protected]>
>
> This patch replaces "%010ld" with "%019" PRIdMAX and casts time() to
> intmax_t, to prevent formatting overflow on systems where long is 32-bit
> but time_t is 64-bit.
>
> The previous formatting could truncate high-bit time values, causing
> unexpected behavior in mail queue operations on systems with time beyond
> 2038.
>
> This ensures safe formatting of time values across 32-bit and 64-bit
> systems.
>
> Signed-off-by: Jiaying Song <[email protected]>
Thanks. There are more places where timestamps are converted,
so I have started a new source code branch to cover the reat.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]