You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following program throws NullReferenceException (assuming that the args[0] contains the path to the attached archive):
using System.Linq;using SharpCompress.Archives.Zip;namespace SharpCompress.Run
{publicclassProgram{publicstaticvoidMain(string[]args){using(varzip= ZipArchive.Open(args[0])){
zip.Entries.ToList();}}}}
The stack trace looks like this:
An unhandled exception of type 'System.NullReferenceException' occurred in SharpCompress.dll: 'Object reference not set to an instance of an object.'
at SharpCompress.Common.Zip.ZipHeaderFactory.ReadHeader(UInt32 headerBytes, BinaryReader reader, Boolean zip64)
at SharpCompress.Common.Zip.SeekableZipHeaderFactory.<ReadSeekableHeader>d__3.MoveNext()
at SharpCompress.Archives.Zip.ZipArchive.<LoadEntries>d__16.MoveNext()
at SharpCompress.LazyReadOnlyCollection`1.LazyLoader.MoveNext()
at SharpCompress.Utility.ForEach[T](IEnumerable`1 items, Action`1 action)
at SharpCompress.LazyReadOnlyCollection`1.EnsureFullyLoaded()
at SharpCompress.LazyReadOnlyCollection`1.get_Count()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at SharpCompress.Run.Program.Main(String[] args) in
The following program throws NullReferenceException (assuming that the args[0] contains the path to the attached archive):
The stack trace looks like this:
Found via SharpFuzz.
The text was updated successfully, but these errors were encountered: