[File] [PATCH] Magdir/images, intel for Atari DEGAS bitmap *.pi1 *.pi2 *.pi3 *.pc1 *.pc2 *.pc3
Christoph Biedl
astron.com.bwoj at manchmal.in-ulm.de
Thu Oct 6 19:48:51 UTC 2022
Jörg Jenderek wrote...
> +# DEGAS mid-res compressed bitmap *.pc2 like: abydos.pc2 ARTIS3.PC2 SMTHDRAW.PC2 STAR_2K.PC2 TX2_DEMO.PC2
> +0 beshort 0x8001
> +>0 use degas-bitmap
> +# DEGAS high-res compressed bitmap *.pc3 like: abydos.pc3 COYOTE.PC3 ELEPHANT.PC3 TX2_DEMO.PC3 SMTHDRAW.PC3
> +0 beshort 0x8002
> +>0 use degas-bitmap
These two only take the first 16 bit of a file into account to decide on
the file type. In my not so humble opinion, file/libmagic should probe
*at least* for 33 bit before deciding, i.e. printing something.
As a result of the above change, I've seen several false-positives, e.g.
on a python pickle file.¹
Please harden the pattern - for the time being I have no choice but
to disable the lines above.
Christoph
¹ https://bugs.debian.org/cgi-bin/bugreport.cgi?att=1;bug=505463;filename=factor_cache.pickle;msg=5
More information about the File
mailing list