Skip to content

conversion: fix unmarshalling overflow#185

Merged
holiman merged 1 commit intomasterfrom
fix_unmarshal_dec
Oct 2, 2024
Merged

conversion: fix unmarshalling overflow#185
holiman merged 1 commit intomasterfrom
fix_unmarshal_dec

Conversation

@holiman
Copy link
Copy Markdown
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
@codecov
Copy link
Copy Markdown

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           

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