New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swift: Add CSV extension points to the encryption queries. #12794
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of questions, but otherwise this LGTM!
| exists(ClassOrStructDecl c, MethodDecl f, CallExpr call | | ||
| c.getName() = ["RNCryptor", "RNEncryptor", "RNDecryptor"] and | ||
| exists(NominalTypeDecl c, MethodDecl f, CallExpr call | | ||
| c.getName() = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be getFullName like the other cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, well spotted!
Fixed both cases.
| exists(ClassOrStructDecl c, MethodDecl f, CallExpr call | | ||
| c.getName() = ["RNCryptor", "RNEncryptor", "RNDecryptor"] and | ||
| exists(NominalTypeDecl c, MethodDecl f, CallExpr call | | ||
| c.getName() = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be getFullName like the other cases?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Add MaD/CSV extension points to the eight encryption queries. Use them in two of the queries (I intend to take this a bit further at some point). Fix a few other bits and pieces around sinks for better reliability and consistency.