File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
rust/ql/lib/codeql/rust/security Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -112,14 +112,18 @@ private class SensitiveVariableAccess extends SensitiveData {
112
112
override SensitiveDataClassification getClassification ( ) { result = classification }
113
113
}
114
114
115
+ Expr fieldExprParentField ( FieldExpr fe ) {
116
+ result = fe .getParentNode ( )
117
+ }
118
+
115
119
/**
116
120
* A field access data flow node that might be sensitive data.
117
121
*/
118
122
private class SensitiveFieldAccess extends SensitiveData {
119
123
SensitiveDataClassification classification ;
120
124
121
125
SensitiveFieldAccess ( ) {
122
- exists ( FieldExpr fe | fe . getParentNode * ( ) = this .asExpr ( ) .getAstNode ( ) |
126
+ exists ( FieldExpr fe | fieldExprParentField * ( fe ) = this .asExpr ( ) .getAstNode ( ) |
123
127
HeuristicNames:: nameIndicatesSensitiveData ( fe .getIdentifier ( ) .getText ( ) , classification )
124
128
)
125
129
}
You can’t perform that action at this time.
0 commit comments