Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ISPN-2167 Fixed issue where array offset and size were not used when cal... #1222

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -104,9 +104,7 @@ protected ByteBuffer objectToBuffer(Object o, int estimatedSize) throws IOExcept

@Override
public Object objectFromByteBuffer(byte[] buf, int offset, int length) throws IOException, ClassNotFoundException {
byte[] newBytes = new byte[length];
System.arraycopy(buf, offset, newBytes, 0, length);
return objectFromObjectStream(new ObjectInputStream(new ByteArrayInputStream(buf)));
return objectFromObjectStream(new ObjectInputStream(new ByteArrayInputStream(buf, offset, length)));
}

@Override
Expand Down