Skip to content

fix: guard NewWithTime against uint32 timestamp wrap-around - #126

Open
AdamMagued wants to merge 1 commit into
rs:masterfrom
AdamMagued:fix-issue-107
Open

AdamMagued wants to merge 1 commit into
rs:masterfrom
AdamMagued:fix-issue-107

Conversation

@AdamMagued

Copy link
Copy Markdown

Fixes #107

Summary

  • Prevented silent uint32 wrap-around in NewWithTime and Time() when handling out-of-range or pre-epoch timestamps.
  • Added unit tests covering timestamp boundary conditions.

Verified via container sandbox test suite.

Signed-off-by: AdamMagued <adamismailmageud@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: NewWithTime uint wrap around causes xid to return wrong time

1 participant