Control: tags -1 patch

On 2025-01-28 14:31:15 +0100, Vincent Lefevre wrote:
> On 2022-09-27 08:26:32 +0200, Hilmar Preuße wrote:
> > The file too starts with "%!". According to [1] the magic byte for
> > Postscript is "%!PS". So the check is not strict enough to rule out false
> > positives.
> > 
> > Hilmar
> > 
> > [1] https://en.wikipedia.org/wiki/List_of_file_signatures
> 
> I also found this bug yesterday, and I've reported it upstream.

Patch attached (I've also submitted it to the upstream BTS).

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Description: Stricter PostScript magic
Bug-Debian: https://bugs.debian.org/988451
Bug: https://bugs.astron.com/view.php?id=618
Author: Vincent Lefevre <vinc...@vinc17.net>
Last-Update: 2025-01-28

Index: b/magic/Magdir/printer
===================================================================
--- a/magic/Magdir/printer
+++ b/magic/Magdir/printer
@@ -5,7 +5,7 @@
 #
 
 # PostScript, updated by Daniel Quinlan (quin...@yggdrasil.com)
-0      string          %!              PostScript document text
+0      string          %!PS            PostScript document text
 !:mime application/postscript
 !:apple        ASPSTEXT
 >2     string          PS-Adobe-       conforming

Reply via email to