Up to [cvs.NetBSD.org] / pkgsrc / archivers / libzip
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Pullup ticket #7291 - requested by taca archivers/libzip: Security fix Revisions pulled up: - archivers/libzip/Makefile 1.86-1.87 - archivers/libzip/PLIST 1.23 - archivers/libzip/distinfo 1.52-1.53 - archivers/libzip/patches/patch-regress_nihtest.conf.in deleted - archivers/libzip/patches/patch-regress_support_nihtest.conf.in 1.1 --- Module Name: pkgsrc Committed By: wiz Date: Wed Oct 7 14:24:37 UTC 2026 Modified Files: pkgsrc/archivers/libzip: Makefile PLIST distinfo Added Files: pkgsrc/archivers/libzip/patches: patch-regress_support_nihtest.conf.in Removed Files: pkgsrc/archivers/libzip/patches: patch-regress_nihtest.conf.in Log Message: libzip: update to 1.12. # 1.12 [2026-10-07] * Keep order of local extra fields, even if an identical extra field is present in the central directory. * Add `zip_source_at_eof()` and `ZIP_SOURCE_AT_EOF`. * Consistently report CRC and decryption errors when reading exactly to end-of-file. * Remove Mbed TLS support - the required functions were made private. * Make non-random tests work on macOS and Windows by using a special version of libzip. * Securely clear passwords and key material before freeing it. * Use SipHash hash function with per-table random keys. This prevents hash flooding attacks. * Add compile time option to limit LZMA window size. * Add more comprehensive fuzzers for metadata and write code paths. * Fix `zip_source_is_seekable()`. * Fix setting incorrect WinZIP AES version in some cases. * Further improvements to overall stability and other minor adjustments have been made. --- Module Name: pkgsrc Committed By: wiz Date: Wed Oct 14 10:59:01 UTC 2026 Modified Files: pkgsrc/archivers/libzip: Makefile distinfo Log Message: libzip: update to 1.12.1. # 1.12.1 [2026-10-14] * Protect against denial of service attack (advisory GHSA-m3wq-j48p-jxwh, actually fixed in 1.12). * Fix compile issues. * Fix adding and replacing files in torrentzip archives. * Fix error handling in `zip_source_filep_create()`.
libzip: update to 1.12. # 1.12 [2026-10-07] * Keep order of local extra fields, even if an identical extra field is present in the central directory. * Add `zip_source_at_eof()` and `ZIP_SOURCE_AT_EOF`. * Consistently report CRC and decryption errors when reading exactly to end-of-file. * Remove Mbed TLS support - the required functions were made private. * Make non-random tests work on macOS and Windows by using a special version of libzip. * Securely clear passwords and key material before freeing it. * Use SipHash hash function with per-table random keys. This prevents hash flooding attacks. * Add compile time option to limit LZMA window size. * Add more comprehensive fuzzers for metadata and write code paths. * Fix `zip_source_is_seekable()`. * Fix setting incorrect WinZIP AES version in some cases. * Further improvements to overall stability and other minor adjustments have been made.
libzip: update to 1.11.4. # 1.11.4 [2025-05-23] * Use separate cmake package files for library and programs. * Improve documentation.
libzip: update to 1.11.3. # 1.11.3 [2025-01-20] * Report read error for corrupted encrypted file data. * Avoid unnecessary seeks when writing archive. * Don't hardcode `_Nullable` support in `zip.h` to allow it to be used with different compilers. * Improve check for GetSecurityInformation availability on Windows.
libzip: update to 1.10.0. # 1.10.0 [2023-06-23] * Make support for layered sources public. * Add `zip_source_zip_file` and `zip_source_zip_file_create`, deprecate `zip_source_zip` and `zip_source_zip_create`. * Allow reading changed file data. * Fix handling of files of size 4294967295. * `zipmerge`: copy extra fields. * `zipmerge`: add option to keep files uncompressed. * Switch test framework to use nihtest instead of Perl. * Fix reading/writing compressed data with buffers > 4GiB. * Restore support for torrentzip. * Add warnings when using deprecated functions. * Allow keeping files for empty archives. * Support mbedTLS>=3.3.0. * Support OpenSSL 3. * Use ISO C secure library functions, if available.
libzip: update to 1.9.2. 1.9.2 [2022-06-28] =================== * Fix version number in header file. 1.9.1 [2022-06-28] =================== * Fix `zip_file_is_seekable()`.
libzip: update to 1.9.0. 1.9.0 [2022-06-13] ================== * Add `zip_file_is_seekable()`. * Improve compatibility with WinAES. * Fix encoding handling in `zip_name_locate()`. * Add option to `zipcmp` to output summary of changes. * Various bug fixes and documentation improvements.
libzip: update to 1.8.0. Add one post-release patch. 1.8.0 [2021-06-18] ================== * Add support for zstd (Zstandard) compression. * Add support for lzma (ID 14) compression. * Add `zip_source_window_create()`. * Add `zip_source_zip_create()` variant to `zip_source_zip()`. * Allow method specific `comp_flags` in `zip_set_file_compression()`. * Allow `zip_source_tell()` on sources that don't support seeking and `zip_ftell()` on compressed data. * Provide more details for consistency check errors. * Improve output of `zipcmp`. * In `zipcmp`, don’t ignore empty directories when comparing directory listing. * Treat empty string as no password given in `zip_file_set_encryption()`, `zip_fopen_encrypted()`, and `zip_set_default_password()`.
libzip: update to 1.7.2. Add github master site as fallback. 1.7.2 [2020-07-11] ================== * Fixes for the CMake find_project() files. * libzip moved to the CMake libzip:: NAMESPACE. * CMake usage best practice cleanups.
libzip: update to 1.7.0. 1.7.0 [2020-06-05] ================== * Add support for encrypting using traditional PKWare encryption. * Add `zip_compression_method_supported()`. * Add `zip_encryption_method_supported()`. * Add the `ZIP_SOURCE_GET_FILE_ATTRIBUTES` source command. * Refactor stdio file backend. * Add CMake find_project() support.
libzip: update to 1.6.1. 1.6.1 [2020-02-03] ================== * Bugfix for double-free in zipcmp(1) during cleanup.
libzip: update to 1.6.0. 1.6.0 [2020-01-24] ================== * Avoid using umask() since it's not thread-safe. * Set close-on-exec flag when opening files. * Do not accept empty files as valid zip archives any longer. * Add support for XZ compressed files (using liblzma). * Add support for cancelling while closing zip archives. * Add support for setting the time in the on-disk format.
libzip: update to 1.4.0. 1.4.0 [2017-12-29] ================== * Improve build with cmake * Retire autoconf/automake build system * Add `zip_source_buffer_fragment()`. * Add support to clone unchanged beginning of archive (instead of rewriting it). Supported for buffer sources and on Apple File System. * Add support for Microsoft Universal Windows Platform.
libzip: update to 1.3.1.
1.3.1 [2017-11-19]
==================
* Install zipconf.h into ${PREFIX}/include
* Add zip_libzip_version()
* Fix AES tests on Linux
Updated libzip to 1.2.0. 1.2.0 [2017-02-19] ================== * Support for AES encryption (Winzip version), both encryption and decryption. * Support legacy zip files with >64k entries. * Fix seeking in zip_source_file if start > 0. * Add zip_fseek() for seeking in uncompressed data. * Add zip_ftell() for telling position in uncompressed data. * Add zip_register_progress_callback() for UI updates during zip_close()
Update libzip to 1.1: 1.1 [2016/01/26] * ziptool(1): command line tool to modify zip archives * Speedups for archives with many entries * Coverity fixes * Better APK support * Support for running tests on Windows * More build fixes for Windows * Portability fixes * Documentation improvements
Update to 1.0: 1.0 [2015/04/29] * Implemented an I/O abstraction layer. * Added support for native Windows API for files. * Added support for setting the last modification time for a file. * Added a new type zip_error_t for errors. * Added more typedefs for structs. * Torrentzip support was removed. * CVE-2015-2331 was fixed. * Addressed all Coverity CIDs.
Update to 0.11.2: 0.11.2 [2013/12/19] * Support querying/setting operating system and external attributes. * For newly added files, set operating system to UNIX, permissions to 0666 (0777 for directories). * Fix bug when writing zip archives containing files bigger than 4GB.
Update to 0.11: 0.11 [2013/03/23] * Added Zip64 support (large file support) * Added UTF-8 support for file names, file comments, and archive comments * Changed API for name and comment related functions for UTF-8 support * Added zip_discard() * Added ZIP_TRUNCATE for zip_open() * Added zip_set_file_compression() * Added API for accessing and modifying extra fields * Improved API type consistency * Use gcc4's visibility __attribute__ * More changes for Windows support * Additional test cases
libzip-0.10: 0.10 [2010/03/18] * Added zip_get_num_files(), deprecated zip_get_num_entries(). * Better windows support. * Support for traditional PKWARE encryption added. * Fix opening archives with more than 65535 entries. * Fix some memory leaks. * Fix cmake build and installation * Fix memory leak in error case in zip_open() * Fixed CVE-2011-0421 (no security implications though) * More documentation.
Update to 0.9: * remove erroneous references to GPL * add support for torrentzip * new functions: zip_get_archive_flag, zip_set_archive_flag * zip_source_zip: add flag to force recompression * zip_sorce_file: only keep file open while reading from it
Update to 0.8: 0.8 [2007/06/06] * fix for zip archives larger than 2GiB * fix zip_error_strerror to include libzip error string * add support for streamed zip files * new functions: zip_add_dir, zip_error_clear, zip_file_error_clear * add basic support for building with CMake (incomplete)
Update to 0.7: * struct zip_stat increased for future encryption support * zip_add return value changed (now returns new index of added file) * shared library major bump because of previous two * added functions for reading and writing file and archive comments. New functions: zip_get_archive_comment, zip_get_file_comment, zip_set_archive_comment, zip_set_file_comment, zip_unchange_archive
Import libzip-0.6, a C library to manipulate zip archives.
Initial revision