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

potential ArrayIndexOutOfBounds in zzRefill #1090

Open
lsf37 opened this issue Apr 11, 2023 · 0 comments
Open

potential ArrayIndexOutOfBounds in zzRefill #1090

lsf37 opened this issue Apr 11, 2023 · 0 comments
Assignees
Labels
bug Not working as intended

Comments

@lsf37
Copy link
Member

lsf37 commented Apr 11, 2023

See FasterXML/jackson-dataformats-text#411 and FasterXML/jackson-dataformats-text#412

The IndexOutOfBoundsException is caused by a condition where the buffer is still large enough that it can hold one char, but that char is a high surrogate, so zzRefill returns false (no EOF) but does not increase zzEndRead (the high surrogate does not have a corresponding low surrogate yet).

@lsf37 lsf37 added the bug Not working as intended label Apr 11, 2023
@lsf37 lsf37 self-assigned this Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not working as intended
Projects
None yet
Development

No branches or pull requests

1 participant