Skip to content

prevent arithmetic overflow in certificate validity calculation#2104

Merged
GitGab19 merged 1 commit into
stratum-mining:mainfrom
lucasbalieiro:fix-arithmetic-overflow-responder-noise-sv2
Mar 3, 2026
Merged

prevent arithmetic overflow in certificate validity calculation#2104
GitGab19 merged 1 commit into
stratum-mining:mainfrom
lucasbalieiro:fix-arithmetic-overflow-responder-noise-sv2

Conversation

@lucasbalieiro

Copy link
Copy Markdown
Collaborator

closes #2103

changes now + self.cert_validity to now.saturating_add(self.cert_validity) to prevent integer overflow when computing the certificate expiration time.

@lucasbalieiro lucasbalieiro marked this pull request as ready for review March 3, 2026 17:51
Changes `now` + `self.cert_validity` to `now.saturating_add(self.cert_validity)` to prevent integer overflow when computing the certificate expiration time.
@lucasbalieiro lucasbalieiro force-pushed the fix-arithmetic-overflow-responder-noise-sv2 branch from 17145d4 to 15cf0a3 Compare March 3, 2026 19:13
@GitGab19 GitGab19 merged commit 2a52ad5 into stratum-mining:main Mar 3, 2026
14 of 15 checks passed
@lucasbalieiro lucasbalieiro deleted the fix-arithmetic-overflow-responder-noise-sv2 branch March 4, 2026 13:17
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.

arithmetic overflow in noise_sv2::Responder::step_1_with_now_rng

3 participants