Thread

Thread Index

Message

From: Benjamin Eikel <libzip-mailing-list%eikel.org@localhost>
To: libzip-discuss%nih.at@localhost
Subject: Maximum number of files in zip archive
Date: Thu, 21 Oct 2010 13:52:01 +0200

Hello,

is it possible that libzip supports only up to 65,535 (2^16 - 1) files in one 
zip archive? I have a zip archive that contains over 80,000 files and the 
following code lines

int num = zip_get_num_files(handle);
std::cout << "sizeof=" << sizeof(num) << " value=" << num << std::endl;

yield the output

sizeof=4 value=65535

Furthermore if I try to load all files from the archive there are some (maybe 
those with index > 65535) that cannot be loaded.

Kind regards,
Benjamin

Made by MHonArc.