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