Skip to content

Fix a out of bounds exception when writing to the outBuf#642

Merged
cowtowncoder merged 1 commit intoFasterXML:2.19from
sugmanue:fix-index-out-of-bounds-2.19
Dec 19, 2025
Merged

Fix a out of bounds exception when writing to the outBuf#642
cowtowncoder merged 1 commit intoFasterXML:2.19from
sugmanue:fix-index-out-of-bounds-2.19

Conversation

@sugmanue
Copy link
Copy Markdown
Contributor

Fix for a ArrayIndexOutOfBoundsException exception when parsing long non-chunked ASCII text. The issue is described in #640.

Testing

I changed a bit the existing tests to account to allow the size to match to trigger the bug.

Fixes #640

@cowtowncoder cowtowncoder merged commit eed725b into FasterXML:2.19 Dec 19, 2025
4 checks passed
@cowtowncoder
Copy link
Copy Markdown
Member

cowtowncoder commented Dec 19, 2025

Since 2.18 is the LTS, will try to backport (cherry-pick failed). 2.19 no longer open, no new releases. 2.20 still open until 2.21 released.

EDIT: never mind -- forgot regression only in 2.19, 2.18 not affected. I should read descriptions with more care.

@alextwoods
Copy link
Copy Markdown

@cowtowncoder - is there an ECD/schedule for the next release of 2.19.5 that would include this fix?

@cowtowncoder
Copy link
Copy Markdown
Member

No more 2.19 releases planned (see https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.19).

Fix will be included in 2.20.2 (https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.20.2) and 2.21.0 (https://github.com/FasterXML/jackson/wiki/Jackson-Release-2.21) -- latter more likely to be out first -- hopefully within week now.

@cowtowncoder
Copy link
Copy Markdown
Member

Fix was included in 2.20.2, 2.21.0 and 3.0.4 versions that have now been released.

@sugmanue sugmanue deleted the fix-index-out-of-bounds-2.19 branch January 22, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants