=act ByteString deserialization unbroken for large bytestrings #20901 (#21096)

This commit is contained in:
Johan Andrén 2016-08-03 16:20:59 +02:00 committed by Konrad Malawski
parent baf0eb2510
commit d3df2e5ed3
2 changed files with 19 additions and 5 deletions

View file

@ -111,7 +111,7 @@ object ByteString {
def readFromInputStream(is: ObjectInputStream): ByteString1C = {
val length = is.readInt()
val arr = new Array[Byte](length)
is.read(arr, 0, length)
is.readFully(arr, 0, length)
ByteString1C(arr)
}
}