We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e6c169 commit 20eb39dCopy full SHA for 20eb39d
cpp/ql/src/semmle/code/cpp/security/SensitiveExprs.qll
@@ -19,18 +19,12 @@ abstract class SensitiveExpr extends Expr { }
19
20
class SensitiveVarAccess extends SensitiveExpr {
21
SensitiveVarAccess() {
22
- this instanceof VariableAccess and
23
- exists(string s | this.toString().toLowerCase() = s |
24
- suspicious(s)
25
- )
+ suspicious(this.(VariableAccess).getTarget().getName().toLowerCase())
26
}
27
28
29
class SensitiveCall extends SensitiveExpr {
30
SensitiveCall() {
31
- this instanceof FunctionCall and
32
33
34
+ suspicious(this.(FunctionCall).getTarget().getName().toLowerCase())
35
36
0 commit comments