Song, Jiaying (CN) via Postfix-devel:
> From: Jiaying Song <jiaying.song...@windriver.com>
> 
> 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 <jiaying.song...@windriver.com>

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 -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to