From 7c1666289ded203e4b2857c981cb4921545ded45 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Mon, 15 Mar 2021 12:21:16 +0100 Subject: [PATCH] tools/zip: add missing start_disk field for zip64 extension it is not optional, even though we give the size explicitely Signed-off-by: Dominik Csapak --- src/tools/zip.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tools/zip.rs b/src/tools/zip.rs index 1f9ee517..cca2e766 100644 --- a/src/tools/zip.rs +++ b/src/tools/zip.rs @@ -80,6 +80,7 @@ struct Zip64FieldWithOffset { uncompressed_size: u64, compressed_size: u64, offset: u64, + start_disk: u32, } #[derive(Endian)] @@ -334,10 +335,11 @@ impl ZipEntry { &mut buf, Zip64FieldWithOffset { field_type: 1, - field_size: 3 * 8, + field_size: 3 * 8 + 4, uncompressed_size: self.uncompressed_size, compressed_size: self.compressed_size, offset: self.offset, + start_disk: 0, }, ) .await?;