Skip to content

fix(totp): handle negative time and refine rounding - #36

Merged
LimiNode merged 1 commit into
mainfrom
codex/validate-time-before-uint64_t-conversion
Sep 4, 2025
Merged

fix(totp): handle negative time and refine rounding#36
LimiNode merged 1 commit into
mainfrom
codex/validate-time-before-uint64_t-conversion

Conversation

@LimiNode

@LimiNode LimiNode commented Sep 4, 2025

Copy link
Copy Markdown
Owner

Summary

  • handle negative std::time_t in TOTP code paths
  • round time using modulo to avoid truncation
  • test negative time rejection

Testing

  • scripts/run_tests.sh

https://chatgpt.com/codex/tasks/task_e_68b8d3ec2458832c933367cbcf2e430d

@LimiNode
LimiNode merged commit e3a8e88 into main Sep 4, 2025
4 checks passed
@LimiNode
LimiNode deleted the codex/validate-time-before-uint64_t-conversion branch September 4, 2025 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant