From 51b3e142574341f5fc9a415ca8ba62ccf81a2709 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 13 Oct 2025 19:35:18 +0200 Subject: [PATCH] zip: Increase max size of Mac metadata Raise the maximum size of Mac metadata from 4 MiB to 10 MiB, as that is the value used by Apple themselves in the version of libarchive included in Darwin. --- libarchive/archive_read_support_format_zip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_read_support_format_zip.c b/libarchive/archive_read_support_format_zip.c index 27ba6348b..0c86ce935 100644 --- a/libarchive/archive_read_support_format_zip.c +++ b/libarchive/archive_read_support_format_zip.c @@ -82,7 +82,7 @@ #define ZIP_LOCHDR_LEN 30U /* maximum length of Mac metadata in MiB */ -#define ZIP_MAX_METADATA 4U +#define ZIP_MAX_METADATA 10U struct zip_entry { struct archive_rb_node node; -- 2.47.3