Browse Source

ensure buffer is completely filled in

pull/700/head
Darien Raymond 7 years ago
parent
commit
cf080e8061
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
  1. 2
      common/crypto/chunk.go

2
common/crypto/chunk.go

@ -73,7 +73,7 @@ func (r *ChunkStreamReader) readSize() (uint16, error) {
return 0, err
}
}
common.Must2(r.leftOver.Read(r.buffer))
common.Must2(io.ReadFull(&r.leftOver, r.buffer))
return r.sizeDecoder.Decode(r.buffer)
}

Loading…
Cancel
Save