Permalink
Browse files

Fix incorrect buffer sizing when serializing GetRequests.

This could cause an ArrayIndexOutOfBoundsException while
serializing the RPC.  This closes #31.

Change-Id: I183324614a6cb0e25a9cc7cc00bb3e602a50d356
Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
  • Loading branch information...
james-at-dataxu authored and tsuna committed Jul 19, 2012
1 parent 7419a90 commit eb813eab05a3d35aade2680e5b2de0e87e207576
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/GetRequest.java
View
@@ -248,7 +248,7 @@ private int predictSerializedSize(final byte server_version) {
}
}
if (server_version >= RegionClient.SERVER_VERSION_092_OR_ABOVE) {
- size += 1; // int: Attributes map. Always 0.
+ size += 4; // int: Attributes map. Always 0.
}
return size;
}

0 comments on commit eb813ea

Please sign in to comment.