Skip to content

Commit 65d79ff

Browse files
committed
C++/ExecTainted
1 parent 464f6cb commit 65d79ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module ExecTaintConfig implements DataFlow::StateConfigSig {
155155

156156
Location getASelectedSinkLocation(DataFlow::Node sink) {
157157
exists(DataFlow::Node concatResult, Expr command, ExecState state |
158-
result = [concatResult.getLocation(), command.getLocation()] and
158+
result = [concatResult.getLocation(), command.getLocation(), sink.getLocation()] and
159159
isSink(sink, state) and
160160
isSinkImpl(sink, command, _) and
161161
concatResult = state.getOutgoingNode()

0 commit comments

Comments
 (0)