Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix wrong skipValue position count
  • Loading branch information
miniway committed Jan 28, 2015
commit b4ab94aea9e9cb5b5fe731dc87fd625eb291e9e3
Original file line number Diff line number Diff line change
Expand Up @@ -503,19 +503,15 @@ public void skipValue() throws IOException {
break;
case ARRAY16:
remainingValues += readNextLength16();
consume(2);
break;
case ARRAY32:
remainingValues += readNextLength32();
consume(4);
break;
case MAP16:
remainingValues += readNextLength16() * 2;
consume(2);
break;
case MAP32:
remainingValues += readNextLength32() * 2; // TODO check int overflow
consume(2);
break;
case NEVER_USED:
throw new MessageFormatException(String.format("unknown code: %02x is found", b));
Expand Down