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

(cbor) Handle case of BigDecimal with Integer.MIN_VALUE for scale gracefully #264

Closed
cowtowncoder opened this issue Mar 24, 2021 · 1 comment
Labels
cbor fuzz Issue found by OssFuzz
Milestone

Comments

@cowtowncoder
Copy link
Member

(note: this issue https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32381 from oss-fuzz)

Looks like attempts to normalize BigDecimal using method stripTrailingZeros() fails on a specific case of BigDecimal value with smallest possible scale value, probably since Integer.MIN_VALUE does not have matching opposite positive value.
This issue will need to be fixed in jackson-databind, but filing here since it is most easily exposed via binary codecs (not sure how to trigger textual version).

@cowtowncoder cowtowncoder added this to the 2.13.0 milestone Mar 24, 2021
@cowtowncoder
Copy link
Member Author

Fixed: actual fix in jackson-databind but regression test under cbor repo (since I could not figure out how to trigger via textual representation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cbor fuzz Issue found by OssFuzz
Projects
None yet
Development

No branches or pull requests

1 participant