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.
1 parent af91a2d commit 021e5ffCopy full SHA for 021e5ff
python/ql/src/semmle/python/security/performance/RegExpTreeView.qll
@@ -11,7 +11,8 @@ import semmle.python.RegexTreeView
11
* For javascript we make the pragmatic performance optimization to ignore files we did not extract.
12
*/
13
predicate isExcluded(RegExpParent parent) {
14
- not exists(parent.getRegex().getLocation().getFile().getRelativePath()) or
+ not exists(parent.getRegex().getLocation().getFile().getRelativePath())
15
+ or
16
// Regexes with many occurrences of ".*" may cause the polynomial ReDoS computation to explode, so
17
// we explicitly exclude these.
18
count(int i | exists(parent.getRegex().getText().regexpFind("\\.\\*", i, _)) | i) > 10
0 commit comments