Skip to content

Conversation

CookiePLMonster
Copy link
Contributor

Int32x32To64 macro internally truncates the arguments to int32, while time_t is 64-bit on most/all modern platforms. Therefore, usage of this macro creates a Year 2038 bug.

I detailed this issue a while ago in a writeup, and spotted the same issue in this repository when updating the list of affected repositories:
https://cookieplmonster.github.io/2022/02/17/year-2038-problem/

@Neustradamus
Copy link

@RsyncProject team, @@WayneD: Have you seen this PR?

Int32x32To64 macro internally truncates the arguments to int32,
while time_t is 64-bit on most/all modern platforms.
Therefore, usage of this macro creates a Year 2038 bug.
@tridge tridge merged commit 77be09a into RsyncProject:master Aug 23, 2025
4 checks passed
@CookiePLMonster CookiePLMonster deleted the y2038-patch branch August 23, 2025 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants