Fix a bug where we weren't reading enough characters when a BOM was encountered.

This commit is contained in:
Jesse Wilson 2012-08-28 01:48:25 +00:00
parent 980796005f
commit 46b73632b0
2 changed files with 152 additions and 132 deletions

View File

@ -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