None
EN
libmagic: The Blathering
['Evan Sultanik']
The Trail of Bits Blog
PolyFile, on the other hand, correctly parses libmagic’s entire pattern database and passes all but two of libmagic’s unit tests, and correctly identifies at least as many MIME types as libmagic on Ange Albertini’s 900+ file Corkami corpus. (&0x10.S) read the offset from the big-endian short 0x10 bytes past the parent match (&-4.l) read the offset from the little-endian long four bytes before the parent &(0.S-2) read the first two bytes of the file, interpret them as a big-endian short, subtract two, and use that value as an offset relative to the parent match The semantics are ambiguous; this could mean, “Read the offset from the little-endian long 0x10 bytes past the parent match decremented by four,” or it could mean, “Read the offset from the little-endian long 0x10 bytes past the…