Skip to content

A bug on decompressing empty files #515

Closed

Description

@KKacer

I think there is a bug in de-compressing an empty file.
I am using your complete sample of zipping an entire directory,
At the same time added AES256 encryption based on an advice here and set a password for the Zip files.
Tested in tens of samples, when it reaches empty files, the zip de-compressor (WinRar)
will ask again for the password (which will not accept the correct password), and then will throw a wrong password exception.

Activity

  1. Numpsy commented on Sep 8, 2020

    @Numpsy
    Contributor

    Is this creating the zips using FastZip or ZipOutputStream directly?

    If you're using version 1.2. it might be that you're hitting one of the issues with flushing, or possibly #460 - if so, you could try it with the latest code and see if that fixes it for you?

  2. KKacer commented on Sep 16, 2020

    @KKacer
    Author

    Hello @Numpsy
    Sorry for the late reply,
    I was in a trip.
    As you said, the official release had that bug,
    After downloading the latest source seems that didn't happen.
    Will back to you if it happened again.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions