camlzip
camlzip copied to clipboard
Reading and writing zip and gzip files from OCaml
The documentation of [`Zip.open_out`](https://github.com/xavierleroy/camlzip/blob/dd86042ac5eba8ba21e3d98b2f3e3dd82fc14033/zip.mli#L99-L104) suggests that opening an existing zip file to add new entries will truncate it to zero length. As far as i'm aware, zip files allow adding...
# Description Hi, working on camlzip I identified a bug that makes the `read_entry` function goes into an infinite loop **for entries that have a negative offset or an offset...
As reported in #45, truncated input can cause `inflate` to produce no output and to return "not finished" infinitely. This PR detects this case and fail cleanly with an exception...