You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Match_Timeout_Loop_Throws test is not timing out with RegexOptions.NonBacktracking #60623
@olsaarik, I think the issue here is that we're only checking for timeout during phase 1, but with the pattern @"a\s+", phase 1 will be really fast (only looks at two characters). Phase 2 is then really fast as well, but Phase 3 takes a very long time (iterating through 800 million characters) without timeout checks.
I believe you're working on overhauling phase 1 to find the longest match. Will that fix this as well then?
Activity
stephentoub commentedon Oct 19, 2021
cc: @veanes, @olsaarik
stephentoub commentedon Mar 14, 2022
@olsaarik, I think the issue here is that we're only checking for timeout during phase 1, but with the pattern
@"a\s+", phase 1 will be really fast (only looks at two characters). Phase 2 is then really fast as well, but Phase 3 takes a very long time (iterating through 800 million characters) without timeout checks.I believe you're working on overhauling phase 1 to find the longest match. Will that fix this as well then?
stephentoub commentedon Apr 20, 2022
This test no longer exists.