Skip to content

feat: implement compute-share-overflow-protection#246

Merged
thlpkee20-wq merged 2 commits intoRevoraOrg:masterfrom
Samaro1:feature/contracts-014-compute-share-overflow-protection
Apr 1, 2026
Merged

feat: implement compute-share-overflow-protection#246
thlpkee20-wq merged 2 commits intoRevoraOrg:masterfrom
Samaro1:feature/contracts-014-compute-share-overflow-protection

Conversation

@Samaro1
Copy link
Copy Markdown
Contributor

@Samaro1 Samaro1 commented Mar 30, 2026

This PR hardens compute_share against overflow by switching to safe, bounded arithmetic and preserving deterministic rounding behavior.

What changed
Updated share computation logic to avoid overflow in extreme-value paths.
Added focused edge-case tests for max/min input behavior and rounding determinism.
Added documentation for security assumptions and overflow/failure behavior.

Closes #146

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@Samaro1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@thlpkee20-wq thlpkee20-wq merged commit 01fa4a4 into RevoraOrg:master Apr 1, 2026
1 check failed
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.

Implement Compute Share Overflow Protection

2 participants