Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6903c7

Browse files
committed
[CPP-370] Remove prohibition against UserDefinedFormattingFunction
1 parent 8faf95e commit f6903c7

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,7 @@ class NonConstFlow extends TaintTracking::Configuration {
9797
override predicate isSource(DataFlow::Node source) { isNonConst(source) }
9898

9999
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-
)
100+
exists(FormattingFunctionCall fc | sink.asExpr() = fc.getArgument(fc.getFormatParameterIndex()))
105101
}
106102
}
107103

0 commit comments

Comments
 (0)