Skip to content

Commit ef2329c

Browse files
committed
limit to 100 repetitions to avoid excessive backtracking Carsten Wolff
1 parent fd76325 commit ef2329c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: magic/Magdir/commands

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#------------------------------------------------------------------------------
3-
# $File: commands,v 1.44 2013/02/05 15:20:47 christos Exp $
3+
# $File: commands,v 1.45 2013/02/06 14:18:52 christos Exp $
44
# commands: file(1) magic for various shells and interpreters
55
#
66
#0 string/w : shell archive or script for antique kernel text
@@ -49,7 +49,7 @@
4949
!:mime text/x-awk
5050
0 string/wt #!\ /usr/bin/awk awk script text executable
5151
!:mime text/x-awk
52-
0 regex =^\\s*BEGIN\\s*[{] awk script text
52+
0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
5353

5454
# AT&T Bell Labs' Plan 9 shell
5555
0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable

0 commit comments

Comments
 (0)