We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 903b0f5 commit f98de85Copy full SHA for f98de85
swift/ql/lib/codeql/swift/security/CommandInjectionExtensions.qll
@@ -69,3 +69,13 @@ private class CommandInjectionSinks extends SinkModelCsv {
69
]
70
}
71
72
+
73
+/**
74
+ * A barrier for command injection vulnerabilities.
75
+ */
76
+private class CommandInjectionDefaultBarrier extends CommandInjectionBarrier {
77
+ CommandInjectionDefaultBarrier() {
78
+ // any numeric type
79
+ this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = "Numeric"
80
+ }
81
+}
0 commit comments