limit-repetitions-in-awk-detection.patch 604 B

1234567891011121314151617
  1. Upstream-Author: Christos Zoulas <christos@zoulas.com>
  2. Date: Mon Mar 25 14:06:55 2013 +0000
  3. Upstream-Commit ef2329cf71acb59204dd981e2c6cce6c81fe467c
  4. Description:
  5. limit to 100 repetitions to avoid excessive backtracking Carsten Wolff
  6. --- a/magic/Magdir/commands
  7. +++ b/magic/Magdir/commands
  8. @@ -49,7 +49,7 @@
  9. !:mime text/x-awk
  10. 0 string/wt #!\ /usr/bin/awk awk script text executable
  11. !:mime text/x-awk
  12. -0 regex =^\\s*BEGIN\\s*[{] awk script text
  13. +0 regex =^\\s{0,100}BEGIN\\s{0,100}[{] awk script text
  14. # AT&T Bell Labs' Plan 9 shell
  15. 0 string/wt #!\ /bin/rc Plan 9 rc shell script text executable