We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f4cb920 + 54b0350 commit 39e9eafCopy full SHA for 39e9eaf
ruby/ql/src/queries/security/cwe-1333/ReDoSIntroduction.inc.qhelp
@@ -19,6 +19,12 @@
19
shape, increasing the input length by ten characters may make the
20
automaton about 1000 times slower.
21
</p>
22
+ <p>
23
+ Note that Ruby 3.2 and later have implemented a caching mechanism that
24
+ completely eliminates the worst-case time complexity for the regular
25
+ expressions flagged by this query. The regular expressions flagged by this
26
+ query are therefore only problematic for Ruby versions prior to 3.2.
27
+ </p>
28
<p>
29
Typically, a regular expression is affected by this problem if it contains
30
a repetition of the form <code>r*</code> or <code>r+</code> where the
0 commit comments