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
I had a 7z file to extract but SevenZipExtractor::DetectCompressionFormat would think that the format was CompressionFormat::Lzma86 instead of CompressionFormat::SevenZip.
The format is detected is by trying to open the archive with each type consecutively until the archive opens correctly (link to source) but the file is not seeked to the beginning after each iteration, seemingly leading to no/incorrect detection for all but zip formats.
Seeking the file to the beginning before each iteration with fileStream->Seek({}, STREAM_SEEK_SET, nullptr); seems to fix the issue.
The text was updated successfully, but these errors were encountered:
Hi,
I had a 7z file to extract but
SevenZipExtractor::DetectCompressionFormat
would think that the format wasCompressionFormat::Lzma86
instead ofCompressionFormat::SevenZip
.The format is detected is by trying to open the archive with each type consecutively until the archive opens correctly (link to source) but the file is not seeked to the beginning after each iteration, seemingly leading to no/incorrect detection for all but zip formats.
Seeking the file to the beginning before each iteration with
fileStream->Seek({}, STREAM_SEEK_SET, nullptr);
seems to fix the issue.The text was updated successfully, but these errors were encountered: