Skip to content

Commit 4cfe045

Browse files
authored
Merge pull request github#8702 from jketema/command-line-sanitizer
C++: Use `isSanitizerOut(DataFlow::Node node)` in `cpp/command-line-injection`
2 parents 3d41a5c + 83d35a9 commit 4cfe045

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Security/CWE/CWE-078/ExecTainted.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ class ExecTaintConfiguration extends TaintTracking::Configuration {
116116
state instanceof ConcatState
117117
}
118118

119-
override predicate isSanitizerOut(DataFlow::Node node, DataFlow::FlowState state) {
120-
isSink(node, state) // Prevent duplicates along a call chain, since `shellCommand` will include wrappers
119+
override predicate isSanitizerOut(DataFlow::Node node) {
120+
isSink(node, _) // Prevent duplicates along a call chain, since `shellCommand` will include wrappers
121121
}
122122
}
123123

0 commit comments

Comments
 (0)