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 639642f commit 8d35db0Copy full SHA for 8d35db0
cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql
@@ -72,7 +72,7 @@ predicate isNonConst(DataFlow::Node node) {
72
p = node.asParameter() and
73
// Ignore main's argv parameter as it is already considered a `FlowSource`
74
// not ignoring it will result in path redundancies
75
- (f.getName() = "main" implies p.getName() != "argv")
+ (f.getName() = "main" implies p != f.getParameter(1))
76
)
77
or
78
// Consider as an input any out arg of a function or a function's return where the function is not:
0 commit comments