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 2756e82 commit f7a1a4cCopy full SHA for f7a1a4c
cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
@@ -171,12 +171,10 @@ module NonConstFlowConfig implements DataFlow::ConfigSig {
171
172
predicate observeDiffInformedIncrementalMode() { any() }
173
174
- Location getASelectedSourceLocation(DataFlow::Node source) { none() }
175
-
176
Location getASelectedSinkLocation(DataFlow::Node sink) {
177
- result = sink.getLocation()
178
- or
179
- exists(FormattingFunctionCall call, Expr formatString | result = call.getLocation() |
+ exists(FormattingFunctionCall call, Expr formatString |
+ result = [call.getLocation(), sink.getLocation()]
+ |
180
isSinkImpl(sink, formatString) and
181
call.getArgument(call.getFormatParameterIndex()) = formatString
182
)
0 commit comments