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

fix(zip): avoid throwing on empty file name #828

Merged
merged 3 commits into from Mar 12, 2023

Conversation

piksel
Copy link
Member

@piksel piksel commented Mar 12, 2023

Since the APPNOTE allows for zip files to contain files without a file name (useful for piping into a zip file), this ought to be allowed for SharpZipLib as well. This will fix the issue by handling a null value being returned by Path.GetPathRoot.

Supersedes #687.

I certify that I own, and have sufficient rights to contribute, all source code and related material intended to be compiled or integrated with the source code for the SharpZipLib open source product (the "Contribution"). My Contribution is licensed under the MIT License.

@piksel piksel merged commit 0ef7941 into master Mar 12, 2023
@piksel piksel deleted the fix/zip-entry-empty-filename branch March 12, 2023 13:45
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

Successfully merging this pull request may close these issues.

None yet

2 participants