mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Swift: Add numeric barrier for command injection query.
This commit is contained in:
@@ -69,3 +69,13 @@ private class CommandInjectionSinks extends SinkModelCsv {
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* A barrier for command injection vulnerabilities.
|
||||
*/
|
||||
private class CommandInjectionDefaultBarrier extends CommandInjectionBarrier {
|
||||
CommandInjectionDefaultBarrier() {
|
||||
// any numeric type
|
||||
this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = "Numeric"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user