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

types: make NewDecFromStr returns error for too large decimal #9157

Merged
merged 3 commits into from
Apr 22, 2021
Merged

types: make NewDecFromStr returns error for too large decimal #9157

merged 3 commits into from
Apr 22, 2021

Commits on Apr 22, 2021

  1. types: make NewDecFromStr returns error for too large decimal

    Otherwise, NewDecFromStr may accept very large input, causing Dec
    methods panic, e.g Dec.TruncateInt
    
    Found by oss-fuzz: https://oss-fuzz.com/testcase-detail/6454129938530304
    
    Fixes #9160
    cuonglm committed Apr 22, 2021
    Configuration menu
    Copy the full SHA
    8cdae1d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    570b713 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    491aaf7 View commit details
    Browse the repository at this point in the history