Index out of range exception from gzip #408

Open
opened 2026-01-29 22:11:25 +00:00 by claunia · 2 comments
Owner

Originally created by @xy1473210653 on GitHub (Aug 5, 2020).

my code:
using(var gzip =File.OpenWrite(dirPath))
using(var write = WriteFactory.Open(gzip,ArchiveType.GZip,new WriterOptions(CompressionType.GZip){LeaveStreamOpen = true}))
{
write.WriteAll(filePath,"*",SearchOption.AllDirectories);
}

Originally created by @xy1473210653 on GitHub (Aug 5, 2020). my code: using(var gzip =File.OpenWrite(dirPath)) using(var write = WriteFactory.Open(gzip,ArchiveType.GZip,new WriterOptions(CompressionType.GZip){LeaveStreamOpen = true})) { write.WriteAll(filePath,"*",SearchOption.AllDirectories); }
Author
Owner

@xy1473210653 commented on GitHub (Aug 5, 2020):

Why should compressed packages in. Tar format adopt the compression type of. Gzip

@xy1473210653 commented on GitHub (Aug 5, 2020): Why should compressed packages in. Tar format adopt the compression type of. Gzip
Author
Owner

@avao commented on GitHub (Oct 13, 2020):

It looks like there is an issue with extracting file name in GZipStream.cs.
Try extracting file name in your code and supply it to Write (instead of sending full path).

@avao commented on GitHub (Oct 13, 2020): It looks like there is an issue with extracting file name in GZipStream.cs. Try extracting file name in your code and supply it to Write (instead of sending full path).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#408