Skip to content

Commit b142a79

Browse files
committed
C++: Remove unnecessary additional taint step.
1 parent f82683c commit b142a79

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cpp/ql/src/Security/CWE/CWE-311/CleartextTransmission.ql

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,6 @@ class FromSensitiveConfiguration extends TaintTracking::Configuration {
177177
}
178178

179179
override predicate isAdditionalTaintStep(DataFlow::Node node1, DataFlow::Node node2) {
180-
// flow from pre-update to post-update of the source
181-
isSource(node1) and
182-
node2.(DataFlow::PostUpdateNode).getPreUpdateNode() = node1
183-
or
184180
// flow through encryption functions to the return value (in case we can reach other sinks)
185181
node2.asExpr().(Encrypted).(FunctionCall).getAnArgument() = node1.asExpr()
186182
}

0 commit comments

Comments
 (0)