]> granicus.if.org Git - sudo/commitdiff
Add some patterns that could result in exponential run time for
authorTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 18 May 2017 19:10:52 +0000 (13:10 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Thu, 18 May 2017 19:10:52 +0000 (13:10 -0600)
poorly written '*' matching.

plugins/sudoers/regress/env_match/data

index a8e92ef7921f5fc3bb2964bb27a90ad2e1a5ab46..ea28b1b396533f1150020c4fcaef65904145a0bb 100644 (file)
@@ -17,3 +17,6 @@ fo*o*() foooo 0
 MYPATH=*:/mydir:* MYPATH=/dir1/subdir1:/mydir:/dir2:/dir3/subdir2 2
 MYPATH=*:/mydir:** MYPATH=/dir1/subdir1:/mydir:/dir2:/dir3/subdir2 2
 MYPATH=*:/mdir:* MYPATH=/dir1/subdir1:/mydir:/dir2:/dir3/subdir2 0
+a*a*a*a*a*a* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=b 1
+a*a*a*a*a*a*=b* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=b 2
+a*a*a*a*a*a*=* aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa=c 1