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 8faf95e commit f6903c7Copy full SHA for f6903c7
1 file changed
cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
@@ -97,11 +97,7 @@ class NonConstFlow extends TaintTracking::Configuration {
97
override predicate isSource(DataFlow::Node source) { isNonConst(source) }
98
99
override predicate isSink(DataFlow::Node sink) {
100
- exists(FormattingFunctionCall fc |
101
- sink.asExpr() = fc.getArgument(fc.getFormatParameterIndex())
102
- |
103
- not fc.getTarget() instanceof UserDefinedFormattingFunction
104
- )
+ exists(FormattingFunctionCall fc | sink.asExpr() = fc.getArgument(fc.getFormatParameterIndex()))
105
}
106
107
0 commit comments