Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76d731a commit db77c6bCopy full SHA for db77c6b
1 file changed
java/ql/src/Telemetry/AutomodelApplicationModeCharacteristics.qll
@@ -328,6 +328,17 @@ private class OtherArgumentToModeledMethodCharacteristic extends Characteristics
328
}
329
330
331
+/**
332
+ * A characteristic that marks functional expression as likely not sinks.
333
+ *
334
+ * These expressions may well _contain_ sinks, but rarely are sinks themselves.
335
+ */
336
+private class FunctionValueCharacteristic extends CharacteristicsImpl::LikelyNotASinkCharacteristic {
337
+ FunctionValueCharacteristic() { this = "function value" }
338
+
339
+ override predicate appliesToEndpoint(Endpoint e) { e.asExpr() instanceof FunctionalExpr }
340
+}
341
342
/**
343
* A negative characteristic that indicates that an endpoint is not a `to` node for any known taint step. Such a node
344
* cannot be tainted, because taint can't flow into it.
0 commit comments