From: Dag-Erling Smørgrav Date: Mon, 13 Oct 2025 17:35:18 +0000 (+0200) Subject: zip: Increase max size of Mac metadata X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2751%2Fhead;p=thirdparty%2Flibarchive.git 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. --- 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;