Appears to be a regression in 0.41.0
test.zip
Generated via 7z a test.zip wallhaven-225935.jpg. Example input file must be sufficiently large for the bug to become apparent.
The following code produces 0 results in SharpCompress 0.41.0.
using var zipStream = File.OpenRead(@"C:\test.zip"); // Important! don't use ArchiveFactory.Open(string) overload
using var archive = SharpCompress.Archives.ArchiveFactory.Open(zipStream);
using var reader = archive.ExtractAllEntries();
while (reader.MoveToNextEntry())
{
Console.WriteLine(reader.Entry);
}
I bisected and the issue starts occurring here 76de7d5 (replacing stream.Position = 0; with ((IStreamStack)stream).StackSeek(0);)