Commit 0e6b229
authored
Fix ReDoS vulnerability
In commit 87e50c6, they changed [^\[]+ → [^\[\s][^\[]*\s*. The PR description says [^\[]+ was overlapping with \s+. So they made the first char of the label exclude whitespace with [^\[\s]. But then [^\[]* (the rest of the label) still matches spaces, and \s* immediately follows it, same class of overlap.1 parent 48409a5 commit 0e6b229
File tree
1 file changed
+1
-1
lines changed- src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
472 | | - | |
| 472 | + | |
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
| |||
0 commit comments