From 290fd97013f0e7ca07ad64d1a399b566a92d05d8 Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 13 Jun 2024 23:01:46 -0700 Subject: [PATCH] chore: Fix an error when decoding AES header --- src/read.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/read.rs b/src/read.rs index 2e03cbda..1839d68e 100644 --- a/src/read.rs +++ b/src/read.rs @@ -1280,6 +1280,7 @@ pub(crate) fn parse_single_extra_field( _ => return Err(ZipError::InvalidArchive("Invalid AES encryption strength")), }; file.compression_method = compression_method; + len_left -= 7; } 0x5455 => { // extended timestamp