mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Python: mimic JS file hierarchy
This commit is contained in:
@@ -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"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user