Skip to content

fix(utils): detect time failures via errno - #30

Merged
LimiNode merged 1 commit into
mainfrom
codex/replace-time-check-with-errno-handling
Sep 3, 2025
Merged

fix(utils): detect time failures via errno#30
LimiNode merged 1 commit into
mainfrom
codex/replace-time-check-with-errno-handling

Conversation

@LimiNode

@LimiNode LimiNode commented Sep 3, 2025

Copy link
Copy Markdown
Owner

Summary

  • use errno to distinguish real failures when std::time returns -1
  • add tests for time returning -1 with and without error flag

Testing

  • g++ -std=c++17 test_all.cpp hmac.cpp hmac_utils.cpp sha1.cpp sha256.cpp sha512.cpp -lgtest -pthread -o test_all
  • ./test_all

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

Use errno to distinguish real failures when std::time returns -1 and add regression tests for both error and non-error cases.
@LimiNode
LimiNode merged commit 85b0c93 into main Sep 3, 2025
4 checks passed
@LimiNode
LimiNode deleted the codex/replace-time-check-with-errno-handling 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