3 ms·
> So far, libmagic and most other file-type-identification software have been relying on a handcrafted collection of heuristics and custom rules to detect each
by kazinator 3y ago
> So far, libmagic and most other file-type-identification software have been relying on a handcrafted collection of heuristics and custom rules to detect each file format.
This manual approach is both time consuming and error prone as it is hard for humans to create generalized rules by hand.
Pure nonsense. The rules are accurate, based on the actual formats, and not "heuristics".
- deleted 3y ago[deleted]
- cAtte_ 3y agothe rules aren't based on the formats, but on a small portion of them (their magic numbers). this makes them inaccurate (think docx vs zip) and heuristic.
- cle 3y agoBesides compound file types, not all formats are well-specified either. Example is CSV.
- summerlight 3y ago1. Not all file formats are well specified 2. Not all files are precisely following the specification 3. Not all file formats are mutually exclusive Those facts are clearly reflected in the table.