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

Fixes for #420: Wrap unexpected IOOBE #421

Merged
merged 4 commits into from
Dec 16, 2023

Conversation

arthurscchan
Copy link
Contributor

This PR provides a possible fix for #420 by wrapping the unexpected IOOBE when handling invalid or malformed data.

Signed-off-by: Arthur Chan <[email protected]>
Signed-off-by: Arthur Chan <[email protected]>
@@ -549,6 +549,8 @@ public JsonToken nextToken() throws IOException
type = _reader.next();
} catch (IonException e) {
_wrapError(e.getMessage(), e);
} catch (IndexOutOfBoundsException e) {
_constructError(e.getMessage(), e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be thrown, will add throw in front.

@cowtowncoder cowtowncoder merged commit 1d1ccb0 into FasterXML:2.17 Dec 16, 2023
4 checks passed
@arthurscchan arthurscchan deleted the fix-IOOBE branch January 17, 2024 04:56
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.

2 participants