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 2983295 commit 5975546Copy full SHA for 5975546
swift/ql/lib/codeql/swift/security/PredicateInjectionExtensions.qll
@@ -39,3 +39,13 @@ private class PredicateInjectionSinkCsv extends SinkModelCsv {
39
]
40
}
41
42
+
43
+/**
44
+ * A barrier for predicate injection vulnerabilities vulnerabilities.
45
+ */
46
+private class PredicateInjectionDefaultBarrier extends PredicateInjectionBarrier {
47
+ PredicateInjectionDefaultBarrier() {
48
+ // any numeric type
49
+ this.asExpr().getType().getUnderlyingType().getABaseType*().getName() = "Numeric"
50
+ }
51
+}
0 commit comments