We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de7870a commit 110eeaaCopy full SHA for 110eeaa
src/main/java/com/maxmind/db/Decoder.java
@@ -131,17 +131,15 @@ private JsonNode decode() throws IOException {
131
132
int size = ctrlByte & 0x1f;
133
if (size >= 29) {
134
- int bytesToRead = size - 28;
135
- int i = this.decodeInteger(bytesToRead);
136
switch (size) {
137
case 29:
138
- size = 29 + i;
+ size = 29 + buffer.get();
139
break;
140
case 30:
141
- size = 285 + i;
+ size = 285 + decodeInteger(2);
142
143
default:
144
- size = 65821 + i;
+ size = 65821 + decodeInteger(3);
145
}
146
147
0 commit comments