Fix a bug where we weren't reading enough characters when a BOM was encountered.
This commit is contained in:
parent
980796005f
commit
46b73632b0
|
@ -1253,6 +1253,7 @@ public class JsonReader implements Closeable {
|
|||
if (bufferStartLine == 1 && bufferStartColumn == 1 && limit > 0 && buffer[0] == '\ufeff') {
|
||||
pos++;
|
||||
bufferStartColumn--;
|
||||
minimum++;
|
||||
}
|
||||
|
||||
if (limit >= minimum) {
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user