Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conversion: fix unmarshalling overflow #185

Merged
merged 1 commit into from
Oct 2, 2024
Merged

Conversation

holiman
Copy link
Owner

@holiman holiman commented Oct 2, 2024

The json-unmarshalling from decimal form inorrectly invoked fromDecimal, instead of SetFromDecimal. The former assumes that the input has already been validated, and thus does not throw errors on overflow.

Closes #184

The json-unmarshalling from decimal form inorrectly invoked fromDecimal,
instead of SetFromDecimal. The former assumes that the input has already
been validated, and thus does not throw errors on overflow.

Closes #184
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (ce90883) to head (84259ce).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #185   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines         1666      1666           
=========================================
  Hits          1666      1666           

@holiman holiman merged commit b07109b into master Oct 2, 2024
6 checks passed
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.

json unmarshaller accepts (and overflows) oversized decimal input
1 participant