Commit Graph

10 Commits

Author SHA1 Message Date
Lukáš Hejl
02a0955a5f Fixed possible wrongly filled ZIP headers in case that pState->m_zip64 is sets to true. 2021-05-29 19:56:20 +02:00
Lukáš Hejl
671c2ace17 Fixed a modification time for files appended using the streaming interface in the miniz library. 2021-05-25 10:38:29 +02:00
Lukáš Hejl
f50046b31b Modified streaming interface in miniz library to use ZIP64 extension only for files exciding the limits.
The modification is based on a preallocation space in the Extra field using a phony custom block in the Local file header. This space is eventually overwritten by the ZIP64 extension if the file exceeds 4GiB.
Also were fixed differences from PKZip specification in the streaming interface.
2021-05-20 19:44:12 +02:00
Vojtech Bubnik
ef424ad101 miniz: mz_zip_writer_add_staged_data() writes in a single shot 2021-01-27 09:18:17 +01:00
Vojtech Bubnik
e82c502a47 miniz: Improved the streaming write interface. 2021-01-27 09:18:17 +01:00
Vojtech Bubnik
729298c408 PrusaResearch (Vojtech) homebrewed the following:
mz_zip_writer_add_staged_open(), mz_zip_writer_add_staged_data() and mz_zip_writer_add_staged_finish()
were derived from mz_zip_writer_add_read_buf_callback() by splitting it and passing a new
mz_zip_writer_staged_context between them.
2021-01-27 09:18:16 +01:00
Vojtech Bubnik
500c667d7a Extended miniz with https://github.com/richgel999/miniz/pull/147
to support writing a file from a callback without knowing the file
size up front. See comments in src/miniz/README-Prusa.txt for potential
pitfalls.
2021-01-26 09:29:34 +01:00
tamasmeszaros
f275cdafa9 Revert "Patch miniz bundled version to support unicode on Windows."
This reverts commit 8fc1eba652.
2019-06-02 19:06:29 +02:00
tamasmeszaros
8fc1eba652 Patch miniz bundled version to support unicode on Windows. 2019-05-31 16:54:42 +02:00
tamasmeszaros
902bf682c0 Replacing old miniz version with new 2.1.0
#2333: The amalgamated library is used from the 'releases' section of the original upstream https://github.com/richgel999/miniz
2019-05-23 11:52:31 +02:00