-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
Steps to reproduce
- Use a Zip file produced on a *nix system or MacOS (In this case)
- Zip files with invalid windows characters that are valid on MacOS/Linux
- Open up Zip archive with SharpZipLib API
Exception is thrown.
Expected behavior
SharpZipLib should not load a ZipFile class and try to clean up the entry filenames before returning them to the user. The user should be responsible for cleaning up entries themselves in whatever method they see fit.
Actual behavior
SharpZipLib throws an exception in ZipEntry line 1303 because IsPathRooted checks for invalid characters. It also removes root path names.
Version of SharpZipLib
1.10
Obtained from (only keep the relevant lines)
- Package installed using NuGet
For now I worked around the issues by removing the CleanName function from ZipEntry in my own local copy.