Fix alignment for encrypted file data

This commit is contained in:
Truman Kilen 2023-01-19 21:13:03 -06:00
parent 58bbb52738
commit 254e0ce4c0

View file

@ -76,7 +76,7 @@ impl Entry {
let data_offset = reader.stream_position()?; let data_offset = reader.stream_position()?;
let mut data = reader.read_len(match self.encrypted { let mut data = reader.read_len(match self.encrypted {
// add alignment (aes block size: 16) then zero out alignment bits // add alignment (aes block size: 16) then zero out alignment bits
true => (self.compressed + 15) & !17, true => (self.compressed + 15) & !15,
false => self.compressed, false => self.compressed,
} as usize)?; } as usize)?;
if self.encrypted { if self.encrypted {