Skip to content

Commit 83d35a9

Browse files
committed
C++: Use isSanitizerOut(DataFlow::Node node) in cpp/command-line-injection
1 parent 4eaec39 commit 83d35a9

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)