Skip to content

ZipFile.TestArchive fails when using encryption #404

Closed

Description

@AqlaSolutions

Steps to reproduce

  1. Archive files with ZipOutputStream (~350 mb), set password "test", AESKeySize = 256, UseZip64 = On
  2. Open archive with ZipFile
  3. Call ZipFile.TestArchive(false)

Expected behavior

Should return true.

Actual behavior

Returns false because WinZipAES compression method doesn't match Deflated method specified in entry header.

Version of SharpZipLib

dll version 1.2.0.246

Obtained from (only keep the relevant lines)

  • Package installed using NuGet

Activity

  1. changed the title [-]ZipFile.TestArchive fails when using compression[/-] [+]ZipFile.TestArchive fails when using encryption[/+] on Dec 29, 2019
  2. AqlaSolutions commented on Dec 29, 2019

    @AqlaSolutions
    Author

    Also testing or extracting archive in WinRAR 5.10 gives "Not enough memory" error

  3. Numpsy commented on Dec 30, 2019

    @Numpsy
    Contributor

    same as #317 ? (that one has PR #353 attached as a possible fix)

  4. added this to the v1.3 milestone on Dec 30, 2019
  5. added
    zip
    on Dec 30, 2019
  6. AqlaSolutions commented on Dec 31, 2019

    @AqlaSolutions
    Author

    Yes, same

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

    bugduplicatezip

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions