jflex icon indicating copy to clipboard operation
jflex copied to clipboard

potential ArrayIndexOutOfBounds in zzRefill

Open lsf37 opened this issue 2 years ago • 0 comments

See https://github.com/FasterXML/jackson-dataformats-text/issues/411 and https://github.com/FasterXML/jackson-dataformats-text/pull/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 avatar Apr 11 '23 08:04 lsf37