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

Develop #17

Merged
merged 11 commits into from
Apr 5, 2024
Prev Previous commit
Next Next commit
FIX: Empty frames
sander-willems-bruker committed Jan 24, 2024
commit 26fe67024711e11dc31501cb8adf0261bf372899
12 changes: 7 additions & 5 deletions src/file_readers/common/ms_data_blobs.rs
Original file line number Diff line number Diff line change
@@ -31,12 +31,14 @@ impl BinFileReader {
&mmap[offset as usize..(offset + 4) as usize];
let byte_count: u32 =
u32::from_le_bytes(raw_byte_count.try_into().unwrap());
let compressed_blob: &[u8] = &mmap
[(offset + 8) as usize..offset as usize + byte_count as usize];
let blob: Vec<u8> = decode_all(compressed_blob).unwrap();
return blob;
if byte_count > 8 {
let compressed_blob: &[u8] = &mmap[(offset + 8) as usize
..offset as usize + byte_count as usize];
let blob: Vec<u8> = decode_all(compressed_blob).unwrap();
return blob;
}
};
return vec![0];
return vec![];
}

pub fn size(&self) -> usize {