C++: Don't track indirection expressions in 'cpp/cleartext-transmission'. Instead, just track the direct expression.

This commit is contained in:
Mathias Vorreiter Pedersen
2022-12-16 13:26:53 +00:00
parent 31b4dda7bd
commit 4ace171447

View File

@@ -224,7 +224,7 @@ predicate isSinkEncrypt(DataFlow::Node sink, Encrypted enc) {
*/
predicate isSourceImpl(DataFlow::Node source) {
exists(Expr e |
e = source.asIndirectConvertedExpr() and
e = source.asConvertedExpr() and
e.getUnconverted().(VariableAccess).getTarget() instanceof SourceVariable and
not e.hasConversion()
)