Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
zipc.0.2.0
home, doc, issuesZIP archive and deflate codec for OCaml
zipc
v0.2.0 2024-01-22 La Forclaz (VS)Decompression limits in
Zipc_deflate
(breaking change). When thedecompression_size
argument of decompression functions isspecified, decompression errors as soon as the decompressed size
exceeds that value. Previously it was only treated as a hint.
Zipc.File.to_binary_string
, error if the decompression size startsexceeding
File.decompressed_size
rather than ignoring this value.This allows clients to enforce limits on the decompression of
untrusted zip file. Thanks to Valentin Gatien-Baron for suggesting (#1).
Zipc.File.make
: fix default value ofversion_needed_to_extract
. Itwas the same as
version_made_by
which is wrong. Now defaultsto
20
(PKZip 2.0). Thanks to Valentin Gatien-Baron for the report (#3).Fix encoding of
Zipc.File.gp_flags
. Bit 3 indicates presence of adata descriptor. Since we never write one, we clear the bit on
encoding. Not doing this would result in interoperability issues
when rewriting archives that originally had data descriptors. Thanks
to Valentin Gatien-Baron for tracking this down (#4).
Fix swapped date and time in the encoding of local file headers.
Thanks to Valentin Gatien-Baron for the fix (#5).
Write entries in the central directory in the same order as files
are written in the archive. In particular this gives less
surprising result on
unzip -l
. Thanks to Valentin Gatien-Baronfor the patch (#2).
Use
b0 -- .opam publish zipc.0.2.0
to update the pull request.