File tree Expand file tree Collapse file tree 4 files changed +8
-16
lines changed
javascript/ql/src/Performance
java/ql/src/Security/CWE/CWE-730
python/ql/src/Security/CWE-730
ruby/ql/src/queries/security/cwe-1333 Expand file tree Collapse file tree 4 files changed +8
-16
lines changed Original file line number Diff line number Diff line change 11
11
Consider this regular expression:
12
12
</p >
13
13
<sample language =" java" >
14
- ^_(__|.)+_$
15
- </sample >
14
+ ^_(__|.)+_$</sample >
16
15
<p >
17
16
Its sub-expression <code >"(__|.)+?"</code > can match the string <code >"__"</code > either by the
18
17
first alternative <code >"__"</code > to the left of the <code >"|"</code > operator, or by two
25
24
the two branches of the alternative inside the repetition:
26
25
</p >
27
26
<sample language =" java" >
28
- ^_(__|[^_])+_$
29
- </sample >
27
+ ^_(__|[^_])+_$</sample >
30
28
</example >
31
29
32
30
<include src =" ReDoSReferences.inc.qhelp" />
Original file line number Diff line number Diff line change 11
11
Consider this regular expression:
12
12
</p >
13
13
<sample language =" javascript" >
14
- /^_(__|.)+_$/
15
- </sample >
14
+ /^_(__|.)+_$/</sample >
16
15
<p >
17
16
Its sub-expression <code >"(__|.)+?"</code > can match the string <code >"__"</code > either by the
18
17
first alternative <code >"__"</code > to the left of the <code >"|"</code > operator, or by two
25
24
the two branches of the alternative inside the repetition:
26
25
</p >
27
26
<sample language =" javascript" >
28
- /^_(__|[^_])+_$/
29
- </sample >
27
+ /^_(__|[^_])+_$/</sample >
30
28
</example >
31
29
32
30
<include src =" ReDoSReferences.inc.qhelp" />
Original file line number Diff line number Diff line change 11
11
Consider this regular expression:
12
12
</p >
13
13
<sample language =" python" >
14
- ^_(__|.)+_$
15
- </sample >
14
+ ^_(__|.)+_$</sample >
16
15
<p >
17
16
Its sub-expression <code >"(__|.)+?"</code > can match the string <code >"__"</code > either by the
18
17
first alternative <code >"__"</code > to the left of the <code >"|"</code > operator, or by two
25
24
the two branches of the alternative inside the repetition:
26
25
</p >
27
26
<sample language =" python" >
28
- ^_(__|[^_])+_$
29
- </sample >
27
+ ^_(__|[^_])+_$</sample >
30
28
</example >
31
29
32
30
<include src =" ReDoSReferences.inc.qhelp" />
Original file line number Diff line number Diff line change 4
4
<example >
5
5
<p >Consider this regular expression:</p >
6
6
<sample language =" ruby" >
7
- /^_(__|.)+_$/
8
- </sample >
7
+ /^_(__|.)+_$/</sample >
9
8
<p >
10
9
Its sub-expression <code >"(__|.)+?"</code > can match the string
11
10
<code >"__"</code > either by the first alternative <code >"__"</code > to the
21
20
repetition:
22
21
</p >
23
22
<sample language =" ruby" >
24
- /^_(__|[^_])+_$/
25
- </sample >
23
+ /^_(__|[^_])+_$/</sample >
26
24
</example >
27
25
<include src =" ReDoSReferences.inc.qhelp" />
28
26
</qhelp >
You can’t perform that action at this time.
0 commit comments