Python: mimic JS file hierarchy

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-06-30 15:03:22 +02:00
parent 651f8abba0
commit c306cee04e
8 changed files with 6 additions and 6 deletions

View File

@@ -451,14 +451,14 @@
],
"ReDoS Util Python/JS": [
"javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll",
"python/ql/src/semmle/python/regex/ReDoSUtil.qll"
"python/ql/src/semmle/python/security/performance/ReDoSUtil.qll"
],
"ReDoS Exponential Python/JS": [
"javascript/ql/src/semmle/javascript/security/performance/ExponentialBackTracking.qll",
"python/ql/src/semmle/python/regex/ExponentialBackTracking.qll"
"python/ql/src/semmle/python/security/performance/ExponentialBackTracking.qll"
],
"ReDoS Polynomial Python/JS": [
"javascript/ql/src/semmle/javascript/security/performance/SuperlinearBackTracking.qll",
"python/ql/src/semmle/python/regex/SuperlinearBackTracking.qll"
"python/ql/src/semmle/python/security/performance/SuperlinearBackTracking.qll"
]
}

View File

@@ -1,5 +1,5 @@
import python
import semmle.python.regex.SuperlinearBackTracking
import semmle.python.security.performance.SuperlinearBackTracking
from PolynomialBackTrackingTerm t
where t.getLocation().getFile().getBaseName() = "KnownCVEs.py"

View File

@@ -12,7 +12,7 @@
*/
import python
import semmle.python.regex.SuperlinearBackTracking
import semmle.python.security.performance.SuperlinearBackTracking
import semmle.python.security.dataflow.PolynomialReDoS
import DataFlow::PathGraph

View File

@@ -13,7 +13,7 @@
*/
import python
import semmle.python.regex.ExponentialBackTracking
import semmle.python.security.performance.ExponentialBackTracking
from RegExpTerm t, string pump, State s, string prefixMsg
where