deserialize using get_data_size(), which refers to blob.data()'s length,

instead of using msg.meta.size, which refers to the entire blob's length

fixes #752
This commit is contained in:
Rob Walker 2018-07-25 00:11:52 -07:00
parent f0725b4900
commit ff5854396a
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ pub fn reconstruct_entries_from_blobs(blobs: VecDeque<SharedBlob>) -> bincode::R
for blob in blobs {
let entry = {
let msg = blob.read().unwrap();
deserialize(&msg.data()[..msg.meta.size])
deserialize(&msg.data()[..msg.get_data_size().unwrap() as usize])
};
match entry {