Skip to content

Trailing zeros in input file causes exception, other zip software can read #890

@RoVaDePi

Description

@RoVaDePi

Describe the bug

We had a bug which made files with lots of trailing zeros, our old zip library had no issue with them but SharpZipLib does. We have since fixed the bug but were wondering if it's possible to read these files with trailing zeros?

Reproduction Code

https://dotnetfiddle.net/iCF2A4

Steps to reproduce

See repro code

Expected behavior

I expected to be able to read the file

Operating System

No response

Framework Version

.NET Framework 4.x

Tags

ZIP

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzipRelated to ZIP file format

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions