mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
[CPP-370] Remove prohibition against UserDefinedFormattingFunction
This commit is contained in:
@@ -97,11 +97,7 @@ class NonConstFlow extends TaintTracking::Configuration {
|
||||
override predicate isSource(DataFlow::Node source) { isNonConst(source) }
|
||||
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(FormattingFunctionCall fc |
|
||||
sink.asExpr() = fc.getArgument(fc.getFormatParameterIndex())
|
||||
|
|
||||
not fc.getTarget() instanceof UserDefinedFormattingFunction
|
||||
)
|
||||
exists(FormattingFunctionCall fc | sink.asExpr() = fc.getArgument(fc.getFormatParameterIndex()))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user