8000 Password protected archive can be opened with WinZip but not 7-Zip · Issue #418 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

Password protected archive can be opened with WinZip but not 7-Zip #418

Closed

Description

@t0034514

Created a password protected archive on Win 10 using the 2.8.9 assets minizip-windows.zip
I can extract the archive with WinZip but not 7-zip

The files are added one at a time to the archive using the -a -p -s options.
error

Activity

  1. nmoinvaz commented on Sep 17, 2019

    @nmoinvaz
    Member

    Can you please let me know what commands you used to create the archive?

  2. t0034514 commented on Sep 18, 2019

    @t0034514
    Author

    Something like:

    minizip.exe -a -p zzzzzz -s test.zip document.txt

    (I've also created a discussion on the 7-zip source forge site: https://sourceforge.net/p/sevenzip/discussion/45797/thread/03aa2baf72/

  3. nmoinvaz commented on Sep 18, 2019

    @nmoinvaz
    Member

    When I use minizip.exe in minizip-window.zip to zip up the document.txt that you provided that contains "test" - the archive is extractable with 7-Zip 19.02 (alpha). I'm not sure what you are doing to get it to create the bad archive. I'm using the same arguments as above.

  4. t0034514 commented on Sep 19, 2019

    @t0034514
    Author

    Try this,
    create an archive and use the -o option to ensure it is empty
    minizip.exe -o test.zip

    then add a file
    minizip.exe -a -p zzzzzz -s test.zip document.txt

    I cannot see the added file with 7-zip

    If I just do the second step (adding the file) with out the first (overwriting) then it works.

  5. t0034514 commented on Sep 19, 2019

    @t0034514
    Author

    Actually the -p -s options are a red herring

    minizip.exe -o test.zip
    minizip.exe -a test.zip document.txt

    is enough to fail.

  6. nmoinvaz commented on Sep 29, 2019

    @nmoinvaz
    Member

    This is fixed now in the dev branch. Thanks for reporting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    encryptionEncryption/decryption issuefixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0