Commit 57884ae
committed
fix(security): tighten overlappingAlt detector to catch (a|aa)+ patterns
The previous regex required a second quantifier after the group quantifier,
so patterns like (a|aa)+$ could bypass the ReDoS check. Remove the trailing
quantifier requirement so any quantified alternation group is flagged.
Addresses coderabbitai review comment on PR wonderwhy-er#400.
https://claude.ai/code/session_01UesrAy2NYmCpw7rqX71V5X1 parent b88ffdf commit 57884ae
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
0 commit comments