We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95ebbb1 commit 5b0a3dcCopy full SHA for 5b0a3dc
cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
@@ -95,7 +95,8 @@ predicate isNonConst(DataFlow::Node node) {
95
|
96
node = callOutput(call, output)
97
)
98
- ) not exists(Call c |
+ ) and
99
+ not exists(Call c |
100
c.getTarget().hasDefinition() and
101
if node instanceof DataFlow::DefinitionByReferenceNode
102
then c.getAnArgument() = node.asDefiningArgument()
0 commit comments