summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristos Zoulas <christos@zoulas.com>2021-09-20 18:08:28 +0000
committerChristos Zoulas <christos@zoulas.com>2021-09-20 18:08:28 +0000
commit9c1a796c6380d14311336c982777a58d442800fe (patch)
tree094674cfbf024c5323b1c8ce471710a74642dd58
parenta24d50aec73ff53f8a081b814cb96d3ab8f2f0dc (diff)
downloadfile-git-9c1a796c6380d14311336c982777a58d442800fe.tar.gz
PR/289: jc: Limit msdos com magic to not preceeded by printable chars.
-rw-r--r--magic/Magdir/msdos8
1 files changed, 6 insertions, 2 deletions
diff --git a/magic/Magdir/msdos b/magic/Magdir/msdos
index 4272284c..f3b49f59 100644
--- a/magic/Magdir/msdos
+++ b/magic/Magdir/msdos
@@ -1,6 +1,6 @@
#------------------------------------------------------------------------------
-# $File: msdos,v 1.150 2021/08/28 12:28:54 christos Exp $
+# $File: msdos,v 1.151 2021/09/20 18:08:28 christos Exp $
# msdos: file(1) magic for MS-DOS files
#
@@ -732,7 +732,11 @@
!:mime application/x-dosexec
!:ext com
#HELP.COm EDIT.coM
-18 string \xcd\x21 COM executable for MS-DOS
+18 string \xcd\x21
+# not printable before it?
+>17 byte >32
+>>17 byte <126
+>>17 default x COM executable for MS-DOS
!:mime application/x-dosexec
!:ext com
#NWRPLTRM.COm