From 47df575f68e4318dda9384e670bba0897549c116 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Thu, 18 May 2017 13:10:52 -0600 Subject: [PATCH] Add some patterns that could result in exponential run time for poorly written '*' matching. --- plugins/sudoers/regress/env_match/data | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/sudoers/regress/env_match/data b/plugins/sudoers/regress/env_match/data index a8e92ef79..ea28b1b39 100644 --- a/plugins/sudoers/regress/env_match/data +++ b/plugins/sudoers/regress/env_match/data @@ -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 -- 2.40.0