mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Fix source of second part of path
This commit is contained in:
@@ -66,7 +66,9 @@ class FirstNormalization extends DataFlow2::PathNode {
|
||||
class UncheckedNormalizedConfiguration extends TaintTracking::Configuration {
|
||||
UncheckedNormalizedConfiguration() { this = "UncheckedNormalizedConfiguration" }
|
||||
|
||||
override predicate isSource(DataFlow::Node source) { source instanceof PathNormalization }
|
||||
override predicate isSource(DataFlow::Node source) {
|
||||
source = any(FirstNormalization n).getNode()
|
||||
}
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
sink = any(FileSystemAccess e).getAPathArgument()
|
||||
|
||||
Reference in New Issue
Block a user