From b4ab94aea9e9cb5b5fe731dc87fd625eb291e9e3 Mon Sep 17 00:00:00 2001 From: "Min(Dongmin Yu)" Date: Wed, 28 Jan 2015 21:34:50 +0900 Subject: [PATCH] Fix wrong skipValue position count --- .../src/main/java/org/msgpack/core/MessageUnpacker.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java b/msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java index f908eebed..8f246830e 100644 --- a/msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java +++ b/msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java @@ -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));