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

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

Open
RoVaDePi opened this issue Jan 30, 2025 · 0 comments
Open
Labels
bug zip Related to ZIP file format

Comments

@RoVaDePi
Copy link

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

@RoVaDePi RoVaDePi added the bug label Jan 30, 2025
@github-actions github-actions bot added the zip Related to ZIP file format label Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug zip Related to ZIP file format
Projects
None yet
Development

No branches or pull requests

1 participant