We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bbdc9a commit b503b1eCopy full SHA for b503b1e
1 file changed
rust/ql/lib/codeql/rust/security/SensitiveData.qll
@@ -50,7 +50,7 @@ private class SensitiveVariableAccess extends SensitiveData {
50
51
SensitiveVariableAccess() {
52
HeuristicNames::nameIndicatesSensitiveData(this.asExpr()
53
- .getAstNode()
+ .getExpr()
54
.(VariableAccess)
55
.getVariable()
56
.(Variable)
@@ -69,7 +69,7 @@ private class SensitiveFieldAccess extends SensitiveData {
69
SensitiveDataClassification classification;
70
71
SensitiveFieldAccess() {
72
- exists(FieldExpr fe | fieldExprParentField*(fe) = this.asExpr().getAstNode() |
+ exists(FieldExpr fe | fieldExprParentField*(fe) = this.asExpr().getExpr() |
73
HeuristicNames::nameIndicatesSensitiveData(fe.getIdentifier().getText(), classification)
74
)
75
}
0 commit comments