Skip to content

Commit b4ab94a

Browse files
committed
Fix wrong skipValue position count
1 parent eabc122 commit b4ab94a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,19 +503,15 @@ public void skipValue() throws IOException {
503503
break;
504504
case ARRAY16:
505505
remainingValues += readNextLength16();
506-
consume(2);
507506
break;
508507
case ARRAY32:
509508
remainingValues += readNextLength32();
510-
consume(4);
511509
break;
512510
case MAP16:
513511
remainingValues += readNextLength16() * 2;
514-
consume(2);
515512
break;
516513
case MAP32:
517514
remainingValues += readNextLength32() * 2; // TODO check int overflow
518-
consume(2);
519515
break;
520516
case NEVER_USED:
521517
throw new MessageFormatException(String.format("unknown code: %02x is found", b));

0 commit comments

Comments
 (0)