From 254e0ce4c05ab7eeea3253421425d5d39566b16b Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Thu, 19 Jan 2023 21:13:03 -0600 Subject: [PATCH] Fix alignment for encrypted file data --- src/entry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entry.rs b/src/entry.rs index f91a0d1..9969d59 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -76,7 +76,7 @@ impl Entry { let data_offset = reader.stream_position()?; let mut data = reader.read_len(match self.encrypted { // add alignment (aes block size: 16) then zero out alignment bits - true => (self.compressed + 15) & !17, + true => (self.compressed + 15) & !15, false => self.compressed, } as usize)?; if self.encrypted {