Skip to content
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

Merged
merged 6 commits into from Apr 13, 2023

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Apr 11, 2023

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.

@geoffw0 geoffw0 added no-change-note-required This PR does not need a change note Swift labels Apr 11, 2023
@geoffw0 geoffw0 requested a review from a team as a code owner April 11, 2023 17:19
MathiasVP
MathiasVP previously approved these changes Apr 13, 2023
Copy link
Contributor

@MathiasVP MathiasVP left a 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() =
Copy link
Contributor

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?

Copy link
Contributor Author

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() =
Copy link
Contributor

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?

Copy link
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@geoffw0 geoffw0 merged commit 3f8ac1a into github:main Apr 13, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants