Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Commit

Permalink
Fix #85 for 2.7(.10) as well
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed May 3, 2017
1 parent 3fe6796 commit 1f160ff
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions release-notes/VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ Project: jackson-dataformat-protobuf
=== Releases ===
------------------------------------------------------------------------

2.7.10 (not yet released)

dataformats-binary#85: _decode32Bits() bug in ProtobufParser

2.7.9 (04-Feb-2017)
2.7.8 (26-Sep-2016)
2.7.7 (27-Aug-2016)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2258,8 +2258,8 @@ protected final int _decode32Bits() throws IOException {
return _slow32();
}
final byte[] b = _inputBuffer;
int v = (b[ptr] & 0xFF) + ((b[ptr+1]) << 8)
+ ((b[ptr+2] & 0xFF) << 16) + (b[ptr+3] << 24);
int v = (b[ptr] & 0xFF) + ((b[ptr+1] & 0xFF) << 8)
+ ((b[ptr+2] & 0xFF) << 16) + ((b[ptr+3] & 0xFF) << 24);
_inputPtr = ptr+4;
return v;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -453,9 +453,9 @@ protected void assertToken(JsonToken expToken, JsonToken actToken)
}
}

protected void assertToken(JsonToken expToken, JsonParser jp)
protected void assertToken(JsonToken expToken, JsonParser p)
{
assertToken(expToken, jp.getCurrentToken());
assertToken(expToken, p.getCurrentToken());
}

protected void assertType(Object ob, Class<?> expType)
Expand Down

0 comments on commit 1f160ff

Please sign in to comment.