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.
ArgvSource
1 parent 7d1f10b commit 331fab5Copy full SHA for 331fab5
cpp/ql/lib/semmle/code/cpp/security/FlowSources.qll
@@ -89,9 +89,9 @@ private class LocalParameterSource extends LocalFlowSource {
89
90
private class ArgvSource extends LocalFlowSource {
91
ArgvSource() {
92
- exists(Parameter argv |
93
- argv.hasName("argv") and
94
- argv.getFunction().hasGlobalName("main") and
+ exists(Function main, Parameter argv |
+ main.hasGlobalName("main") and
+ main.getParameter(1) = argv and
95
this.asExpr() = argv.getAnAccess()
96
)
97
}
0 commit comments