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 e382cb5 commit 2f56baaCopy full SHA for 2f56baa
cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
@@ -168,6 +168,19 @@ module NonConstFlowConfig implements DataFlow::ConfigSig {
168
cannotContainString(t)
169
)
170
}
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() |
180
+ isSinkImpl(sink, formatString) and
181
+ call.getArgument(call.getFormatParameterIndex()) = formatString
182
+ )
183
+ }
184
185
186
module NonConstFlow = TaintTracking::Global<NonConstFlowConfig>;
0 commit comments