Skip to content

Commit cac0e31

Browse files
committed
Update to libzip-1.10.0
1 parent 45c88c9 commit cac0e31

117 files changed

Lines changed: 1780 additions & 643 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

API-CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ You can define `ZIP_DISABLE_DEPRECATED` before including `<zip.h>` to hide
77
prototypes for deprecated functions, to find out about functions that
88
might be removed at some point.
99

10+
## Changed in libzip-1.10.0
11+
12+
### deprecated `zip_source_zip` and `zip_source_zip_create`
13+
14+
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.
15+
16+
If you want to get the compressed data for the whole file, use
17+
18+
```C
19+
zip_source_zip_file(za, source_archive, source_index, ZIP_FL_COMPRESSED, 0, -1, NULL)
20+
```
21+
1022
## Changed in libzip-1.0
1123
1224
### new type `zip_error_t`

NEWS.md

Lines changed: 93 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,41 @@
1-
1.9.2 [2022-06-28]
1+
# 1.10.0 [2023-06-23]
2+
3+
* Make support for layered sources public.
4+
* Add `zip_source_zip_file` and `zip_source_zip_file_create`, deprecate `zip_source_zip` and `zip_source_zip_create`.
5+
* Allow reading changed file data.
6+
* Fix handling of files of size 4294967295.
7+
* `zipmerge`: copy extra fields.
8+
* `zipmerge`: add option to keep files uncompressed.
9+
* Switch test framework to use nihtest instead of Perl.
10+
* Fix reading/writing compressed data with buffers > 4GiB.
11+
* Restore support for torrentzip.
12+
* Add warnings when using deprecated functions.
13+
* Allow keeping files for empty archives.
14+
* Support mbedTLS>=3.3.0.
15+
* Support OpenSSL 3.
16+
* Use ISO C secure library functions, if available.
17+
18+
19+
# 1.9.2 [2022-06-28]
220

321
* Fix version number in header file.
422

5-
1.9.1 [2022-06-28]
6-
===================
23+
24+
# 1.9.1 [2022-06-28]
725

826
* Fix `zip_file_is_seekable()`.
927

10-
1.9.0 [2022-06-13]
11-
==================
28+
29+
# 1.9.0 [2022-06-13]
1230

1331
* Add `zip_file_is_seekable()`.
1432
* Improve compatibility with WinAES.
1533
* Fix encoding handling in `zip_name_locate()`.
1634
* Add option to `zipcmp` to output summary of changes.
1735
* Various bug fixes and documentation improvements.
1836

19-
1.8.0 [2021-06-18]
20-
==================
37+
38+
# 1.8.0 [2021-06-18]
2139

2240
* Add support for zstd (Zstandard) compression.
2341
* Add support for lzma (ID 14) compression.
@@ -30,29 +48,29 @@
3048
* In `zipcmp`, don’t ignore empty directories when comparing directory listing.
3149
* Treat empty string as no password given in `zip_file_set_encryption()`, `zip_fopen_encrypted()`, and `zip_set_default_password()`.
3250

33-
1.7.3 [2020-07-15]
34-
==================
51+
52+
# 1.7.3 [2020-07-15]
3553

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

39-
1.7.2 [2020-07-11]
40-
==================
57+
58+
# 1.7.2 [2020-07-11]
4159

4260
* Fixes for the CMake `find_project()` files.
4361
* libzip moved to the CMake `libzip::` `NAMESPACE`.
4462
* CMake usage best practice cleanups.
4563

46-
1.7.1 [2020-06-13]
47-
==================
64+
65+
# 1.7.1 [2020-06-13]
4866

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

54-
1.7.0 [2020-06-05]
55-
==================
72+
73+
# 1.7.0 [2020-06-05]
5674

5775
* Add support for encrypting using traditional PKWare encryption.
5876
* Add `zip_compression_method_supported()`.
@@ -61,13 +79,13 @@
6179
* Refactor stdio file backend.
6280
* Add CMake find_project() support.
6381

64-
1.6.1 [2020-02-03]
65-
==================
82+
83+
# 1.6.1 [2020-02-03]
6684

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

69-
1.6.0 [2020-01-24]
70-
==================
87+
88+
# 1.6.0 [2020-01-24]
7189

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

79-
1.5.2 [2019-03-12]
80-
==================
97+
98+
# 1.5.2 [2019-03-12]
8199

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

88-
1.5.1 [2018-04-11]
89-
==================
106+
107+
# 1.5.1 [2018-04-11]
90108

91109
* Choose format of installed documentation based on available tools.
92110
* Fix visibility of symbols.
@@ -96,16 +114,16 @@
96114
* Fix build with LibreSSL.
97115
* Various bugfixes.
98116

99-
1.5.0 [2018-03-11]
100-
==================
117+
118+
# 1.5.0 [2018-03-11]
101119

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

107-
1.4.0 [2017-12-29]
108-
==================
125+
126+
# 1.4.0 [2017-12-29]
109127

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

117-
1.3.2 [2017-11-20]
118-
==================
135+
136+
# 1.3.2 [2017-11-20]
119137

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

122-
1.3.1 [2017-11-19]
123-
==================
140+
141+
# 1.3.1 [2017-11-19]
124142

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

129-
1.3.0 [2017-09-02]
130-
==================
147+
148+
# 1.3.0 [2017-09-02]
131149

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

138-
1.2.0 [2017-02-19]
139-
==================
156+
157+
# 1.2.0 [2017-02-19]
140158

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

149-
1.1.3 [2016-05-28]
150-
==================
167+
168+
# 1.1.3 [2016-05-28]
151169

152170
* Fix build on Windows when using autoconf
153171

154-
1.1.2 [2016-02-19]
155-
==================
172+
173+
# 1.1.2 [2016-02-19]
156174

157175
* Improve support for 3MF files
158176

159-
1.1.1 [2016-02-07]
160-
==================
177+
178+
# 1.1.1 [2016-02-07]
161179

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

165-
1.1 [2016-01-26]
166-
================
183+
184+
# 1.1 [2016-01-26]
167185

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

177-
1.0.1 [2015-05-04]
178-
==================
195+
196+
# 1.0.1 [2015-05-04]
179197

180198
* Build fixes for Windows
181199

182-
1.0 [2015-05-03]
183-
================
200+
201+
# 1.0 [2015-05-03]
184202

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

194-
0.11.2 [2013-12-19]
195-
===================
212+
213+
# 0.11.2 [2013-12-19]
196214

197215
* Support querying/setting operating system and external attributes
198216
* For newly added files, set operating system to UNIX, permissions
199217
to 0666 (0777 for directories)
200218
* Fix bug when writing zip archives containing files bigger than 4GB
201219

202-
0.11.1 [2013-04-27]
203-
===================
220+
221+
# 0.11.1 [2013-04-27]
204222

205223
* Fix bugs in zip_set_file_compression()
206224
* Include Xcode build infrastructure
207225

208-
0.11 [2013-03-23]
209-
=================
226+
227+
# 0.11 [2013-03-23]
210228

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

223-
0.10.1 [2012-03-20]
224-
===================
241+
242+
# 0.10.1 [2012-03-20]
225243

226244
* Fixed CVE-2012-1162
227245
* Fixed CVE-2012-1163
228246

229-
0.10 [2010-03-18]
230-
=================
247+
248+
# 0.10 [2010-03-18]
231249

232250
* Added zip_get_num_entries(), deprecated zip_get_num_files()
233251
* Better windows support
@@ -239,27 +257,27 @@
239257
* Fixed CVE-2011-0421 (no security implications though)
240258
* More documentation
241259

242-
0.9.3 [2010-02-01]
243-
==================
260+
261+
# 0.9.3 [2010-02-01]
244262

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

247-
0.9.2 [2010-01-31]
248-
==================
265+
266+
# 0.9.2 [2010-01-31]
249267

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

253-
0.9.1 [2010-01-24]
254-
==================
271+
272+
# 0.9.1 [2010-01-24]
255273

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

261-
0.9 [2008-07-25]
262-
==================
279+
280+
# 0.9 [2008-07-25]
263281

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

271-
0.8 [2007-06-06]
272-
==================
289+
290+
# 0.8 [2007-06-06]
273291

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

280-
0.7.1 [2006-05-18]
281-
==================
298+
299+
# 0.7.1 [2006-05-18]
282300

283301
* bugfix for zip_close
284302

285-
0.7 [2006-05-06]
286-
================
303+
304+
# 0.7 [2006-05-06]
287305

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

295-
0.6.1 [2005-07-14]
296-
==================
313+
314+
# 0.6.1 [2005-07-14]
297315

298316
* various bug fixes
299317

300-
0.6 [2005-06-09]
301-
================
318+
319+
# 0.6 [2005-06-09]
302320

303321
* first standalone release
304322
* changed license to three-clause BSD

0 commit comments

Comments
 (0)