Tags: kuba--/zip
Tags
Optional flags (#393) * Add compile-time flags to enable/disable inflate, deflate and symlink support Introduces ZIP_ENABLE_INFLATE, ZIP_ENABLE_DEFLATE, and ZIP_HAVE_SYMLINK so users can strip unused functionality and reduce binary size on constrained targets. All flags default to enabled, preserving full backward compatibility when the source files are simply dropped into a project without CMake. Closes #362 * Update README.md * Guard encryption helpers with compile-time flags and add CI matrix Move zip_password_clone outside the ZIP_ENABLE_DEFLATE guard since it is needed by both read and write paths (password-protected open). Wrap PKWARE cipher primitives (encrypt, decrypt, key schedule) with appropriate guards so the library compiles cleanly under all flag combinations, including the all-disabled case. Add a compile-flags CI matrix job that builds every combination of ZIP_ENABLE_INFLATE, ZIP_ENABLE_DEFLATE, and ZIP_HAVE_SYMLINK to catch guard regressions. * Potential fix for code scanning alert no. 11: Workflow does not contain permissions Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Support delete mode ('d') for in-memory zip streams (#333) (#391)
* Support delete mode ('d') for in-memory zip streams (#333)
Allow zip_stream_open to accept 'd' mode so callers can delete entries
from an in-memory archive without duplicating the buffer. A dedicated
write function (zip_stream_delete_write_func) keeps the same heap-write
semantics as miniz but uses a distinct pointer so mz_zip_writer_end
won't free the caller's buffer—no miniz changes required.
Seven new ASan-clean tests cover delete-by-name, delete-by-index,
invalid indices, close-without-copy, open-then-close, delete-all, and
multiple zip_stream_copy calls.
PreviousNext