mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
HCOLL-256 Fixed a bug in CharArrayMarshaller and made some other marshallers more robust
This commit is contained in:
@@ -31,6 +31,8 @@ enum LongPairArrayReader implements BytesReader<LongPair[]> {
|
||||
|
||||
@Override
|
||||
public LongPair[] read(Bytes bytes, long size, LongPair[] toReuse) {
|
||||
if (size > Integer.MAX_VALUE * 16L)
|
||||
throw new IllegalStateException("LongPair[] size couldn't be " + (size / 16L));
|
||||
int resLen = (int) (size / 16L);
|
||||
LongPair[] res;
|
||||
if (toReuse != null) {
|
||||
|
||||
Reference in New Issue
Block a user