]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
zip: Increase max size of Mac metadata 2751/head
authorDag-Erling Smørgrav <des@des.no>
Mon, 13 Oct 2025 17:35:18 +0000 (19:35 +0200)
committerDag-Erling Smørgrav <des@des.no>
Mon, 13 Oct 2025 19:39:13 +0000 (21:39 +0200)
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

index 27ba6348bfdc8fe677d9c0a57ce5845c702c66b6..0c86ce935e26bdfecfef7be15a04b0e6e0e86265 100644 (file)
@@ -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;