Skip to content

Commit

Permalink
Update to libzip-1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyolee committed Jul 11, 2023
1 parent 45c88c9 commit cac0e31
Show file tree
Hide file tree
Showing 117 changed files with 1,780 additions and 643 deletions.
12 changes: 12 additions & 0 deletions API-CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ You can define `ZIP_DISABLE_DEPRECATED` before including `<zip.h>` to hide
prototypes for deprecated functions, to find out about functions that
might be removed at some point.

## Changed in libzip-1.10.0

### deprecated `zip_source_zip` and `zip_source_zip_create`

These functions were replaced with `zip_source_zip_file` and `zip_source_zip_file_create`. The implicit handling of the flag `ZIP_FL_COMPRESSED` was removed, the flag can now be specified explicitly.

If you want to get the compressed data for the whole file, use

```C
zip_source_zip_file(za, source_archive, source_index, ZIP_FL_COMPRESSED, 0, -1, NULL)
```
## Changed in libzip-1.0
### new type `zip_error_t`
Expand Down
168 changes: 93 additions & 75 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,41 @@
1.9.2 [2022-06-28]
# 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.


# 1.9.2 [2022-06-28]

* Fix version number in header file.

1.9.1 [2022-06-28]
===================

# 1.9.1 [2022-06-28]

* Fix `zip_file_is_seekable()`.

1.9.0 [2022-06-13]
==================

# 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.

1.8.0 [2021-06-18]
==================

# 1.8.0 [2021-06-18]

* Add support for zstd (Zstandard) compression.
* Add support for lzma (ID 14) compression.
Expand All @@ -30,29 +48,29 @@
* 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()`.

1.7.3 [2020-07-15]
==================

# 1.7.3 [2020-07-15]

* Support cmake < 3.17 again.
* Fix pkgconfig file (regression in 1.7.2).

1.7.2 [2020-07-11]
==================

# 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.

1.7.1 [2020-06-13]
==================

# 1.7.1 [2020-06-13]

* Restore `LIBZIP_VERSION_{MAJOR,MINOR,MICRO}` symbols.
* Fixes warnings reported by PVS-Studio.
* Add `LIBZIP_DO_INSTALL` build setting to make it easier to use
libzip as subproject.

1.7.0 [2020-06-05]
==================

# 1.7.0 [2020-06-05]

* Add support for encrypting using traditional PKWare encryption.
* Add `zip_compression_method_supported()`.
Expand All @@ -61,13 +79,13 @@
* Refactor stdio file backend.
* Add CMake find_project() support.

1.6.1 [2020-02-03]
==================

# 1.6.1 [2020-02-03]

* Bugfix for double-free in `zipcmp(1)` during cleanup.

1.6.0 [2020-01-24]
==================

# 1.6.0 [2020-01-24]

* Avoid using `umask()` since it's not thread-safe.
* Set close-on-exec flag when opening files.
Expand All @@ -76,17 +94,17 @@
* Add support for cancelling while closing zip archives.
* Add support for setting the time in the on-disk format.

1.5.2 [2019-03-12]
==================

# 1.5.2 [2019-03-12]

* Fix bug in AES encryption affecting certain file sizes
* Keep file permissions when modifying zip archives
* Support systems with small stack size.
* Support mbed TLS as crypto backend.
* Add nullability annotations.

1.5.1 [2018-04-11]
==================

# 1.5.1 [2018-04-11]

* Choose format of installed documentation based on available tools.
* Fix visibility of symbols.
Expand All @@ -96,16 +114,16 @@
* Fix build with LibreSSL.
* Various bugfixes.

1.5.0 [2018-03-11]
==================

# 1.5.0 [2018-03-11]

* Use standard cryptographic library instead of custom AES implementation.
This also simplifies the license.
* Use `clang-format` to format the source code.
* More Windows improvements.

1.4.0 [2017-12-29]
==================

# 1.4.0 [2017-12-29]

* Improve build with cmake
* Retire autoconf/automake build system
Expand All @@ -114,29 +132,29 @@
Supported for buffer sources and on Apple File System.
* Add support for Microsoft Universal Windows Platform.

1.3.2 [2017-11-20]
==================

# 1.3.2 [2017-11-20]

* Fix bug introduced in last: zip_t was erroneously freed if zip_close() failed.

1.3.1 [2017-11-19]
==================

# 1.3.1 [2017-11-19]

* Install zipconf.h into ${PREFIX}/include
* Add zip_libzip_version()
* Fix AES tests on Linux

1.3.0 [2017-09-02]
==================

# 1.3.0 [2017-09-02]

* Support bzip2 compressed zip archives
* Improve file progress callback code
* Fix zip_fdopen()
* CVE-2017-12858: Fix double free()
* CVE-2017-14107: Improve EOCD64 parsing

1.2.0 [2017-02-19]
==================

# 1.2.0 [2017-02-19]

* Support for AES encryption (Winzip version), both encryption
and decryption
Expand All @@ -146,24 +164,24 @@
* Add zip_ftell() for telling position in uncompressed data
* Add zip_register_progress_callback() for UI updates during zip_close()

1.1.3 [2016-05-28]
==================

# 1.1.3 [2016-05-28]

* Fix build on Windows when using autoconf

1.1.2 [2016-02-19]
==================

# 1.1.2 [2016-02-19]

* Improve support for 3MF files

1.1.1 [2016-02-07]
==================

# 1.1.1 [2016-02-07]

* Build fixes for Linux
* Fix some warnings reported by PVS-Studio

1.1 [2016-01-26]
================

# 1.1 [2016-01-26]

* ziptool(1): command line tool to modify zip archives
* Speedups for archives with many entries
Expand All @@ -174,13 +192,13 @@
* Portability fixes
* Documentation improvements

1.0.1 [2015-05-04]
==================

# 1.0.1 [2015-05-04]

* Build fixes for Windows

1.0 [2015-05-03]
================

# 1.0 [2015-05-03]

* Implemented an I/O abstraction layer
* Added support for native Windows API for files
Expand All @@ -191,22 +209,22 @@
* CVE-2015-2331 was fixed
* Addressed all Coverity CIDs

0.11.2 [2013-12-19]
===================

# 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

0.11.1 [2013-04-27]
===================

# 0.11.1 [2013-04-27]

* Fix bugs in zip_set_file_compression()
* Include Xcode build infrastructure

0.11 [2013-03-23]
=================

# 0.11 [2013-03-23]

* Added Zip64 support (large file support)
* Added UTF-8 support for file names, file comments, and archive comments
Expand All @@ -220,14 +238,14 @@
* More changes for Windows support
* Additional test cases

0.10.1 [2012-03-20]
===================

# 0.10.1 [2012-03-20]

* Fixed CVE-2012-1162
* Fixed CVE-2012-1163

0.10 [2010-03-18]
=================

# 0.10 [2010-03-18]

* Added zip_get_num_entries(), deprecated zip_get_num_files()
* Better windows support
Expand All @@ -239,27 +257,27 @@
* Fixed CVE-2011-0421 (no security implications though)
* More documentation

0.9.3 [2010-02-01]
==================

# 0.9.3 [2010-02-01]

* Include m4/ directory in distribution; some packagers need it

0.9.2 [2010-01-31]
==================

# 0.9.2 [2010-01-31]

* Avoid passing uninitialized data to deflate()
* Fix memory leak when closing zip archives

0.9.1 [2010-01-24]
==================

# 0.9.1 [2010-01-24]

* Fix infinite loop on reading some broken files
* Optimization in time conversion (don't call localtime())
* Clear data descriptor flag in central directory, fixing Open Office files
* Allow more than 64k entries

0.9 [2008-07-25]
==================

# 0.9 [2008-07-25]

* on Windows, explicitly set dllimport/dllexport
* remove erroneous references to GPL
Expand All @@ -268,22 +286,22 @@
* zip_source_zip: add flag to force recompression
* zip_sorce_file: only keep file open while reading from it

0.8 [2007-06-06]
==================

# 0.8 [2007-06-06]

* fix for zip archives larger than 2GiB
* fix zip_error_strerror to include libzip error string
* add support for reading streamed zip files
* new functions: zip_add_dir, zip_error_clear, zip_file_error_clear
* add basic support for building with CMake (incomplete)

0.7.1 [2006-05-18]
==================

# 0.7.1 [2006-05-18]

* bugfix for zip_close

0.7 [2006-05-06]
================

# 0.7 [2006-05-06]

* struct zip_stat increased for future encryption support
* zip_add return value changed (now returns new index of added file)
Expand All @@ -292,13 +310,13 @@
New functions: zip_get_archive_comment, zip_get_file_comment,
zip_set_archive_comment, zip_set_file_comment, zip_unchange_archive

0.6.1 [2005-07-14]
==================

# 0.6.1 [2005-07-14]

* various bug fixes

0.6 [2005-06-09]
================

# 0.6 [2005-06-09]

* first standalone release
* changed license to three-clause BSD
Expand Down
Loading

0 comments on commit cac0e31

Please sign in to comment.