cube-soft/cube.filesystem.sevenzip

Please add check for zero filled / zero sized archives

deltaone opened this issue · 2 comments

When use zero filled .rar file

  		using(var archive = new ArchiveReader(file.FullName))
  			{
  				foreach(var item in archive.Items)

Getting uncatchable exception in

d:\work\is-keeper\src\Lib\Cube.FileSystem.SevenZip\Details\ArchiveItemController.cs

   private T Get<T>(string src, ItemPropId pid)
    {
        var var = new PropVariant();
        _archive.GetProperty((uint)Index, pid, ref var);
clown commented

I'll confirm the issue.

clown commented

I fixed the issue and tested with the following *.rar archives.