Fixed NETTY-101: ObjectDecoderInputStream.readObject() discards data and throws a StreamCorruptedException.
* Removed unnecessary readFully call in readObject()
This commit is contained in:
parent
e9b841757a
commit
c460c90dea
@ -125,9 +125,6 @@ public class ObjectDecoderInputStream extends InputStream implements
|
|||||||
"data length too big: " + dataLen + " (max: " + maxObjectSize + ')');
|
"data length too big: " + dataLen + " (max: " + maxObjectSize + ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
byte[] data = new byte[dataLen];
|
|
||||||
readFully(data);
|
|
||||||
|
|
||||||
return new CompactObjectInputStream(in, classLoader).readObject();
|
return new CompactObjectInputStream(in, classLoader).readObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user