mirror of
https://github.com/guillaumemeyer/watermarks-remover.git
synced 2026-08-22 13:11:57 +02:00
* Handle malformed DOCX/ODT beyond BadZipFile in container inspectors A corrupt, truncated, encrypted, or unsupported-compression container raises more than BadZipFile (NotImplementedError, RuntimeError, EOFError, OSError, ValueError, zlib.error), so inspect_docx / inspect_odt and detect_container_format now catch the whole family and degrade to a clear finding. The zip-bomb rejection in _check_zip_budget now raises a dedicated ZipBudgetExceeded so it keeps propagating out of the inspectors, matching clean_docx / clean_odt, instead of being reported as an unparseable zip. * fix: satisfy ruff lint and format checks --------- Co-authored-by: eeshsaxena <chinmaymd72@gmail.com> Co-authored-by: Guillaume Meyer (The Opinionated Man) <1385518+guillaumemeyer@users.noreply.github.com>