Comment 10 for bug 99736

Revision history for this message
In , Bastien Nocera (hadess-deactivatedaccount) wrote :

(In reply to comment #5)
> Hm. After reading some more about the formats, it should also be possible to
> extend the graphics a bit to be
>
> P1\x0a# (offset: 0)
>
> so the magic includes the (possible) comment in line 2, although this comment
> is not required. But it is less generic than just searching for P1..7.

Seems like the best option. A magic of 2 characters is just too short...

* freedesktop.org.xml.in: Tighten the magic for PBM,
PPM and PGM types, so as to avoid false positives
(Closes: #2359)
* tests/list:
* tests/test.pbm: Add a pbm test file