Skip to content

Error -3 when extracting with AES256 #348

@tamasszarka

Description

@tamasszarka

Hi Nathan,
I'm trying to use minizip 2.7.5 to extract a password-protected zip with WinZip AES256.
I tried multiple archives, one generated with .NET Ionic.Zip and another with 7-zip for Windows.

I'm experimenting with the command line minizip.exe app provided, but get the same error for both type of files:

d:\minizip\minizip-2.7.5\Debug>minizip.exe -x -d "d:\minizip\test\extract" -s -p lorem "d:\minizip\test\test.zip"
Minizip 2.7.5 - https://github.com/nmoinvaz/minizip
---------------------------------------------------
Archive d:\minizip\test\test.zip
Extracting dir1/
Extracting dir1/x.txt
Error -3 saving zip entries to disk d:\Rhino\minizip\test\test.zip

I'm on Windows, using VS 2015 toolset and building x64. I debugged it all the way down to zlib/inflate.c, on the minizip level everything seems reasonable until then.

Here is the file I used, this was created with 7-zip with the below settings: test.zip

password: lorem
settings used:
settings

Any help is greatly appreciated.

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