Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 88a1eea

Browse files
authored
Merge pull request #11724 from MathiasVP/clear-text-transmission-dont-track-indirection
C++: Use `asExpr` in `cpp/cleartext-transmission`
2 parents df7a4ac + 2de2887 commit 88a1eea

3 files changed

Lines changed: 66 additions & 239 deletions

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)