mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
False positive in tar detection #631
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DaleStan on GitHub (Apr 26, 2024).
When I call
ArchiveFactory.IsArchivewith the attached file (which started life as a SQL CE database), it incorrectly reports that it's a tar file.Is it possible to make the detection code stricter, or have I just stumbled across a pathological case?
false positive.tar.txt
@adamhathcock commented on GitHub (Apr 27, 2024):
You might have stumbled on something because the file gets read and looks for a tar header.