mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Swift: Remove omittable exists variables
This commit is contained in:
@@ -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
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user