SevenZipExtractor icon indicating copy to clipboard operation
SevenZipExtractor copied to clipboard

Signature Offsets

Open RvdHout opened this issue 2 years ago • 0 comments

Looks like some of the archive signatures have to be found at a specific offset, like:

SevenZipFormat.Tar // 257 byte offset

SevenZipFormat.Iso // 0x8001, 0x8801 or 0x9001 byte offset

SevenZipFormat.Lzh // 2 byte offset

SevenZipFormat.Hfs // 0x400 byte offset

https://en.wikipedia.org/wiki/List_of_file_signatures

I checked this with a renamed tar archive, with renamed extension *.tmp is doesn't detect it as tarball and returns: "*.tmp is not a known archive type"

RvdHout avatar Jul 18 '23 23:07 RvdHout