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: Dummy file is created when password is invalid #6

Open
Lecrapouille opened this issue Dec 8, 2022 · 1 comment
Open

Unzip: Dummy file is created when password is invalid #6

Lecrapouille opened this issue Dec 8, 2022 · 1 comment

Comments

@Lecrapouille
Copy link
Owner

@fbergmann

  • Let supposed foo.zip has "1234" as password.
  • Let try opening it with "abcd" password and try to extract all its entries.
  • unzOpenCurrentFilePassword with "abcd" password does not return KO
  • std::ofstream output_file(filename.c_str(), std::ofstream::binary); The file of the entry is created with some bytes inside (because set as binary ?)
  • unzReadCurrentFile will return 0 bytes read (instead of negative value for error).
  • extractToXXX is returning OK
  • unzCloseCurrentFile is returning KO
  • ofstream file is still present.
@Lecrapouille
Copy link
Owner Author

Get segfault with macOS when dezziping https://www.unforgettable.dk/ with dummy password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant