IonParser.getIntValue()
fails or does not handle value overflow checks
#428
Labels
2.17
has-failing-test
Indicates that there exists a test case (under `failing/`) to reproduce the issue
ion
Milestone
(note: found via https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65180)
Looks like overflow checks not being by
IonParser
can result in one of outcomes:RuntimeException
being thrown, when methodgetIntValue()
is called with value beyond 32-bitint
rangeInstead, this should be surfaced same as equivalent
JsonParseException
JSON-backedJsonParser
throws in similar situation -- seeParserBase.convertNumberToInt()
(andParserBase.reportOverflowInt()
) for examples of handling.Same probably affects
long
overflow as well (wrtBigInteger
range value)The text was updated successfully, but these errors were encountered: