417a11
From ef2329cf71acb59204dd981e2c6cce6c81fe467c Mon Sep 17 00:00:00 2001
417a11
From: Christos Zoulas <christos@zoulas.com>
417a11
Date: Mon, 25 Mar 2013 14:06:55 +0000
417a11
Subject: [PATCH] limit to 100 repetitions to avoid excessive backtracking
417a11
 Carsten Wolff
417a11
417a11
---
417a11
 magic/Magdir/commands | 4 ++--
417a11
 1 file changed, 2 insertions(+), 2 deletions(-)
417a11
417a11
diff --git a/magic/Magdir/commands b/magic/Magdir/commands
417a11
index 67c3eee..4a7d8dd 100644
417a11
--- a/magic/Magdir/commands
417a11
+++ b/magic/Magdir/commands
417a11
@@ -49,7 +49,8 @@
417a11
 !:mime	text/x-awk
417a11
 0	string/wt	#!\ /usr/bin/awk	awk script text executable
417a11
 !:mime	text/x-awk
417a11
-0	regex		=^\\s*BEGIN\\s*[{]	awk script text
417a11
+0	regex		=^\\s{0,100}BEGIN\\s{0,100}[{]	awk script text
417a11
+!:strength - 12
417a11
 
417a11
 # AT&T Bell Labs' Plan 9 shell
417a11
 0	string/wt	#!\ /bin/rc	Plan 9 rc shell script text executable
417a11
-- 
417a11
1.8.5.5
417a11