Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.tar.7z support #751

Closed
SupinePandora43 opened this issue Jul 21, 2023 · 2 comments
Closed

.tar.7z support #751

SupinePandora43 opened this issue Jul 21, 2023 · 2 comments

Comments

@SupinePandora43
Copy link

SupinePandora43 commented Jul 21, 2023

stacktrace:

SharpCompress.Compressors.LZMA.DataErrorException: Data Error
   at SharpCompress.Compressors.LZMA.LzmaStream.Read(Byte[] buffer, Int32 offset, Int32 count)
   at SharpCompress.Compressors.LZMA.Utilites.Utils.ReadExact(Stream stream, Byte[] buffer, Int32 offset, Int32 length)
   at SharpCompress.Common.SevenZip.ArchiveReader.ReadAndDecodePackedStreams(Int64 baseOffset, IPasswordProvider pass)
   at SharpCompress.Common.SevenZip.ArchiveReader.ReadDatabase(IPasswordProvider pass)
   at SharpCompress.Archives.SevenZip.SevenZipArchive.LoadFactory(Stream stream)
   at SharpCompress.Archives.SevenZip.SevenZipArchive.LoadEntries(IEnumerable`1 volumes)
   at SharpCompress.Archives.AbstractArchive`2..ctor(ArchiveType type, SourceStream srcStream)
   at SharpCompress.Archives.SevenZip.SevenZipArchive..ctor(SourceStream srcStream)
   at SharpCompress.Archives.SevenZip.SevenZipArchive.Open(FileInfo fileInfo, ReaderOptions readerOptions)
   at SharpCompress.Archives.SevenZip.SevenZipArchive.Open(String filePath, ReaderOptions readerOptions)

file in question: ultralightcore-bin-41a04e01-linux-x64.7z
file sha256: c6dd7e4ba5867fe763109263a5af8da40cf3e5cf46b91e4892eac76a49ec0746

code to replicate:

SevenZipArchive.Open(file);

for some reason, i can't open it in Ark, but can in Dolphin 😕
Turns out it's .tar.7z archive!

@SupinePandora43 SupinePandora43 changed the title 7z DataErrorException: Data Error .tar.7z support Jul 22, 2023
@adamhathcock
Copy link
Owner

should easy to add to detection alongside gzip and bzip2

@btomblinson
Copy link
Contributor

Pull request #763 closes this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants