False positive in tar detection #631

Open
opened 2026-01-29 22:14:57 +00:00 by claunia · 1 comment
Owner

Originally created by @DaleStan on GitHub (Apr 26, 2024).

When I call ArchiveFactory.IsArchive with 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

Originally created by @DaleStan on GitHub (Apr 26, 2024). When I call `ArchiveFactory.IsArchive` with 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](https://github.com/adamhathcock/sharpcompress/files/15133633/false.positive.tar.txt)
claunia added the question label 2026-01-29 22:14:57 +00:00
Author
Owner

@adamhathcock commented on GitHub (Apr 27, 2024):

You might have stumbled on something because the file gets read and looks for a tar header.

@adamhathcock commented on GitHub (Apr 27, 2024): You might have stumbled on something because the file gets read and looks for a tar header.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/sharpcompress#631