Skip to content

Commit c306cee

Browse files
committed
Python: mimic JS file hierarchy
1 parent 651f8ab commit c306cee

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

config/identical-files.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,14 @@
451451
],
452452
"ReDoS Util Python/JS": [
453453
"javascript/ql/src/semmle/javascript/security/performance/ReDoSUtil.qll",
454-
"python/ql/src/semmle/python/regex/ReDoSUtil.qll"
454+
"python/ql/src/semmle/python/security/performance/ReDoSUtil.qll"
455455
],
456456
"ReDoS Exponential Python/JS": [
457457
"javascript/ql/src/semmle/javascript/security/performance/ExponentialBackTracking.qll",
458-
"python/ql/src/semmle/python/regex/ExponentialBackTracking.qll"
458+
"python/ql/src/semmle/python/security/performance/ExponentialBackTracking.qll"
459459
],
460460
"ReDoS Polynomial Python/JS": [
461461
"javascript/ql/src/semmle/javascript/security/performance/SuperlinearBackTracking.qll",
462-
"python/ql/src/semmle/python/regex/SuperlinearBackTracking.qll"
462+
"python/ql/src/semmle/python/security/performance/SuperlinearBackTracking.qll"
463463
]
464464
}

python/ql/src/Security/CWE-730/PolynomialBackTracking.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import python
2-
import semmle.python.regex.SuperlinearBackTracking
2+
import semmle.python.security.performance.SuperlinearBackTracking
33

44
from PolynomialBackTrackingTerm t
55
where t.getLocation().getFile().getBaseName() = "KnownCVEs.py"

python/ql/src/Security/CWE-730/PolynomialReDoS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*/
1313

1414
import python
15-
import semmle.python.regex.SuperlinearBackTracking
15+
import semmle.python.security.performance.SuperlinearBackTracking
1616
import semmle.python.security.dataflow.PolynomialReDoS
1717
import DataFlow::PathGraph
1818

python/ql/src/Security/CWE-730/ReDoS.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*/
1414

1515
import python
16-
import semmle.python.regex.ExponentialBackTracking
16+
import semmle.python.security.performance.ExponentialBackTracking
1717

1818
from RegExpTerm t, string pump, State s, string prefixMsg
1919
where

0 commit comments

Comments
 (0)