Swift: Remove omittable exists variables

This commit is contained in:
Tony Torralba
2022-12-22 11:26:58 +01:00
parent 7ef8099a8b
commit 50cd40ed20
5 changed files with 39 additions and 47 deletions

View File

@@ -32,12 +32,12 @@ class StaticInitializationVectorSource extends Expr {
class EncryptionInitializationSink extends Expr {
EncryptionInitializationSink() {
// `iv` arg in `init` is a sink
exists(InitializerCallExpr call, string fName |
exists(InitializerCallExpr call |
call.getStaticTarget()
.hasQualifiedName([
"AES", "ChaCha20", "Blowfish", "Rabbit", "CBC", "CFB", "GCM", "OCB", "OFB", "PCBC",
"CCM", "CTR"
], fName) and
], _) and
call.getArgumentWithLabel("iv").getExpr() = this
)
}