Skip to content

Delete regex timeout#30347

Merged
ViktorHofer merged 2 commits intomainfrom
ViktorHofer-patch-1
Feb 5, 2023
Merged

Delete regex timeout#30347
ViktorHofer merged 2 commits intomainfrom
ViktorHofer-patch-1

Conversation

@ViktorHofer
Copy link
Copy Markdown
Member

Fixes dotnet/runtime#81543

As discussed in dotnet/runtime, a regex timeout isn't necessary as the tool currently doesn't run in a security sensitive environment in our core stack repositories and customers aren't expected to be using this functionality in such an environment either.

When ApiCompat upgrades and targets .NET 7+, we should also leverage the RegexOptions.NonBacktracking mode.

Fixes dotnet/runtime#81543

As discussed in dotnet/runtime, a regex timeout isn't necessary as the tool currently doesn't run in a security sensitive environment in our core stack repositories and customers aren't expected to be using this functionality in such an environment either.

When ApiCompat upgrades and targets .NET 7+, we should also leverage the `RegexOptions.NonBacktracking` mode.
@ViktorHofer ViktorHofer self-assigned this Feb 5, 2023
@ViktorHofer ViktorHofer requested a review from a team as a code owner February 5, 2023 12:35
@ghost
Copy link
Copy Markdown

ghost commented Feb 5, 2023

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@ViktorHofer ViktorHofer enabled auto-merge (squash) February 5, 2023 13:07
@ViktorHofer ViktorHofer merged commit bd6b43f into main Feb 5, 2023
@ViktorHofer ViktorHofer deleted the ViktorHofer-patch-1 branch February 5, 2023 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.DotNet.ApiCompat failing with RegexMatchTimeoutException in

2 participants