FastZip.CreateZip crashes when used with certain buggy Directory enumeration on .NET 5 #676
Labels
enhancement
Feature request or other improvements of existing functionality
zip
Related to ZIP file format
Not really a bug, more like a feature suggestion.
Steps to reproduce
FastZip.CreateZip
as the GetDirectories/GetFiles return invalid data;Directory.GetDirectories
call into theFileSystemScanner
class. However it is not possible to supply customFileSystemScanner
s toFastZip.CreateZip
. It would be helpful in this case as I could just copy that class and insert the required fixup calls. It would be necessary to create an interface aroundFileSystemScanner
and to change topublic
the methodSharpZipLib/src/ICSharpCode.SharpZipLib/Zip/FastZip.cs
Line 477 in 612969e
What do you think?
Expected behavior
FastZip.CreateZip
should offer an override to specify customFileSystemScanner
s.Actual behavior
FastZip.CreateZip
throws exception as the paths returned byDirectory.GetDirectories
are not valid paths.Version of SharpZipLib
1.3.3
Obtained from (only keep the relevant lines)
The text was updated successfully, but these errors were encountered: