You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[miniz] Bump miniz version to 3.0.2 and add patch for zip64 (pytorch#140041)
Summary:
Bump miniz version from 2.1.0 to 3.0.2 and apply these patches:
* pytorch#79636 patches internal BUCK and bazel build
* pytorch#138959 adds `bool compute_crc32` argument
* miniz PR: richgel999/miniz#324 to support
zip64
Anyone bumping miniz version again, please apply these patches as well.
Test Plan:
Rely on unit test
Imported from OSS
Differential Revision: D65586230
Pull Request resolved: pytorch#140041
Approved by: https://github.com/mikaylagawarecki
- Modified cmake script to support shared library mode and find_package
50
+
- Fix for misleading doc comment on `mz_zip_reader_init_cfile` function
51
+
- Add include location tolerance and stop forcing `_GNU_SOURCE`
52
+
- Fix: mz_zip_reader_locate_file_v2 returns an mz_bool
53
+
- Fix large file system checks
54
+
- Add #elif to enable an external mz_crc32() to be linked in
55
+
- Write with dynamic size (size of file/data to be added not known before adding)
56
+
- Added uncompress2 for zlib compatibility
57
+
- Add support for building as a Meson subproject
58
+
- Added OSSFuzz support; Integrate with CIFuzz
59
+
- Add pkg-config file
60
+
- Fixed use-of-uninitialized value msan error when copying dist bytes with no output bytes written.
61
+
- mz_zip_validate_file(): fix memory leak on errors
62
+
- Fixed MSAN use-of-uninitialized in tinfl_decompress when invalid dist is decoded. In this instance dist was 31 which s_dist_base translates as 0
63
+
- Add flag to set (compressed) size in local file header
64
+
- avoid use of uninitialized value in tdefl_record_literal
65
+
3
66
### 2.1.0
4
67
5
68
- More instances of memcpy instead of cast and use memcpy per default
@@ -82,7 +145,7 @@ The inflator now has a new failure status TINFL_STATUS_FAILED_CANNOT_MAKE_PROGRE
82
145
- The inflator coroutine func. is subtle and complex so I'm being cautious about this release. I would greatly appreciate any help with testing or any feedback.
83
146
I feel good about these changes, and they've been through several hours of automated testing, but they will probably not fix anything for the majority of prev. users so I'm
84
147
going to mark this release as beta for a few weeks and continue testing it at work/home on various things.
85
-
- The inflator in raw (non-zlib) mode is now usable on gzip or similiar data streams that have a bunch of bytes following the raw deflate data (problem discovered by rustyzip author williamw520).
148
+
- The inflator in raw (non-zlib) mode is now usable on gzip or similar data streams that have a bunch of bytes following the raw deflate data (problem discovered by rustyzip author williamw520).
86
149
This version should *never* read beyond the last byte of the raw deflate data independent of how many bytes you pass into the input buffer. This issue was caused by the various Huffman bitbuffer lookahead optimizations, and
87
150
would not be an issue if the caller knew and enforced the precise size of the raw compressed data *or* if the compressed data was in zlib format (i.e. always followed by the byte aligned zlib adler32).
88
151
So in other words, you can now call the inflator on deflate streams that are followed by arbitrary amounts of data and it's guaranteed that decompression will stop exactly on the last byte.
@@ -103,7 +166,7 @@ Merged over a few very minor bug fixes that I fixed in the zip64 branch. This is
103
166
Interim bugfix release while I work on the next major release with zip64 and streaming compression/decompression support. Fixed the MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY bug (thanks [email protected]), which could cause the locate files func to not find files when this flag was specified. Also fixed a bug in mz_zip_reader_extract_to_mem_no_alloc() with user provided read buffers (thanks kymoon). I also merged lots of compiler fixes from various github repo branches and Google Code issue reports. I finally added cmake support (only tested under for Linux so far), compiled and tested with clang v3.3 and gcc 4.6 (under Linux), added defl_write_image_to_png_file_in_memory_ex() (supports Y flipping for OpenGL use, real-time compression), added a new PNG example (example6.c - Mandelbrot), and I added 64-bit file I/O support (stat64(), etc.) for glibc.
104
167
105
168
- Critical fix for the MZ_ZIP_FLAG_DO_NOT_SORT_CENTRAL_DIRECTORY bug (thanks [email protected]) which could cause locate files to not find files. This bug
106
-
would only have occured in earlier versions if you explicitly used this flag, OR if you used mz_zip_extract_archive_file_to_heap() or mz_zip_add_mem_to_archive_file_in_place()
169
+
would only have occurred in earlier versions if you explicitly used this flag, OR if you used mz_zip_extract_archive_file_to_heap() or mz_zip_add_mem_to_archive_file_in_place()
107
170
(which used this flag). If you can't switch to v1.15 but want to fix this bug, just remove the uses of this flag from both helper funcs (and of course don't use the flag).
108
171
- Bugfix in mz_zip_reader_extract_to_mem_no_alloc() from kymoon when pUser_read_buf is not NULL and compressed size is > uncompressed size
109
172
- Fixing mz_zip_reader_extract_*() funcs so they don't try to extract compressed data from directory entries, to account for weird zipfiles which contain zero-size compressed data on dir entries.
@@ -172,5 +235,3 @@ Added statement from unlicense.org
0 commit comments