Skip to content

Commit 4ace171

Browse files
committed
C++: Don't track indirection expressions in 'cpp/cleartext-transmission'. Instead, just track the direct expression.
1 parent 31b4dda commit 4ace171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ predicate isSinkEncrypt(DataFlow::Node sink, Encrypted enc) {
224224
*/
225225
predicate isSourceImpl(DataFlow::Node source) {
226226
exists(Expr e |
227-
e = source.asIndirectConvertedExpr() and
227+
e = source.asConvertedExpr() and
228228
e.getUnconverted().(VariableAccess).getTarget() instanceof SourceVariable and
229229
not e.hasConversion()
230230
)

0 commit comments

Comments
 (0)