Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unzip shows warnings and errors on watermarked zips #23

Open
hnorkowski opened this issue Mar 25, 2024 · 0 comments
Open

unzip shows warnings and errors on watermarked zips #23

hnorkowski opened this issue Mar 25, 2024 · 0 comments
Labels
bug Something isn't working component: watermarker Watermarker Library

Comments

@hnorkowski
Copy link
Contributor

🐞 Bug Report

Describe the Bug

When trying unzip a watermarked zip file the unzip command shows warnings and sometimes even errors:

Archive:  multiple_files_watermarked.zip
warning [multiple_files_watermarked.zip]:  32 extra bytes at beginning or within zipfile
  (attempting to process anyway)
file #1:  bad zipfile offset (local header sig):  32
  (attempting to re-compensate)
 extracting: a.txt
A

error: invalid zip file with overlapped components (possible zip bomb)
 To unzip the file anyway, rerun the command with UNZIP_DISABLE_ZIPBOMB_DETECTION=TRUE environmnent variable

unzip version:

UnZip 6.00 of 20 April 2009, by Info-ZIP.  Maintained by C. Spieler.  Send
bug reports using http://www.info-zip.org/zip-bug.html; see README for details.

To Reproduce

Steps to reproduce the behavior:

  1. go to samples/
  2. execute unzip -c multiple_files_watermarked.zip

Expected Behavior

Files are extracted without warnings or errors

System Information

Additional Context

It might not be possible to prevent a warning. It depends on the implementation of the specific application.
Details about the file format: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT

@hnorkowski hnorkowski added bug Something isn't working component: watermarker Watermarker Library labels Mar 25, 2024
@hnorkowski hnorkowski self-assigned this Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component: watermarker Watermarker Library
Projects
None yet
Development

No branches or pull requests

1 participant