[C#] A bug when using DotNetZipLib v1.9

I found an interesting bug When using DotNetZipLib in C#. The bug happens when I opened a perticular zip file several times.
Test file (Download Link: http://pan.baidu.com/s/1millKzm Passwd: vj3f)

//Set fileName to your dowloaded file.
string fileName = @"C:\PCSH00249_FULLGAME_01.00.VPK";
int i = 0;
while (true)
{
    i++;
    Console.WriteLine("{0} try...", i);
    using (Ionic.Zip.ZipFile zipFile = Ionic.Zip.ZipFile.Read(fileName)) { }
}

Result:
dotnetziplibbug

Leave a Reply

Your email address will not be published. Required fields are marked *