Repository navigation
test: csharp func_start nested-generic-types-mix ReDoS regression (Closes #3321) - #5363
Merged
Merged
Conversation
…rt of #3321) #3321's hang (runtime NestedGenericTypesMix.cs) no longer reproduces: the whole 34 KB file scans in 0.01 s since #3320's one-owner-per-`<` fix. Pin the shapes. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 17, 2026 17:38
squid-protocol
enabled auto-merge (squash)
October 17, 2026 17:39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3321
What
Test-only.
test_csharp_func_start_nested_generic_types_mix_redos_3321pins the shapes of runtime'sNestedGenericTypesMix.cs: alternatingMyStructN<int>.MyClassN+1<int>.chains (60/260/500 levels on one line, 40 short lines of 30 levels) and deep non-chainedA<B<C<...>>>nesting. Each is ReDoS-immune within 1 s and still finds a real method.Why no engine change (the issue is stale)
Measured on the real file (fetched from dotnet/runtime main, 34,110 bytes, 1,022 lines):
func_start.finditerover the whole file takes 0.01 s; no line is slow. #3320's fix (each<has one owner in the return-type token) is the mechanism the issue suspected. A 3-shape chain sweep over every language'sfunc_startfound nothing over 0.2 s.Class table
No regex change, so no golden re-bless.
pr_gates --fast: 6/6 pass.Cross-repo
None.
🤖 Generated with Claude Code