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: Flow through OpenExistentialExpr #14113

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

geoffw0
Copy link
Contributor

@geoffw0 geoffw0 commented Aug 31, 2023

Add flow through OpenExistentialExpr. We sometimes identify flow sources at calls whose qualifier has a protocol type, rather than an actual class type. Swift inserts an OpenExistentialExpr around these calls marking the conversion, and we weren't propagating taint through that - leading to a disappointing lack of results from these sources.

@geoffw0 geoffw0 added the Swift label Aug 31, 2023
@geoffw0 geoffw0 requested a review from a team as a code owner August 31, 2023 14:58
@MathiasVP
Copy link
Contributor

Should we maybe hide OpenExistentialExpr from the AST instead? As you said yourself it behaves like an implicit conversion (which we already hide)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants