v05i028: /etc/magic lines for compress
Alexander Dupuy
dupuy at douglass.columbia.edu
Fri Nov 18 04:53:42 AEST 1988
Just to follow up on the problems with /etc/magic formats: it is currently
possible to cause file(1) to crash on a Sparc (or other strict alignment
machine) by having magic entries which are of type "short" or "long", at
misaligned offsets. If you have a Sun-2 or Sun-4, you can repeat this by
placing the following entry into /etc/magic:
1 long 0 doesn't matter if it matches or not.
This should crash file with a Bus Error, when you apply it to any file for
which it doesn't have a builtin rule, such as an ordinary ASCII text file.
@alex
--
inet: dupuy at columbia.edu
uucp: ...!rutgers!columbia!dupuy
More information about the Comp.sources.bugs
mailing list