Skip to content

Commit a2f2b6c

Browse files
committed
CPP:Only consider **argv as tainted.
1 parent 6573b1f commit a2f2b6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/security/FlowSources.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ private class ArgvSource extends LocalFlowSource {
5353
exists(Function main, Parameter argv |
5454
main.hasGlobalName("main") and
5555
main.getParameter(1) = argv and
56-
this.asParameter(_) = argv
56+
this.asParameter(2) = argv
5757
)
5858
}
5959

0 commit comments

Comments
 (0)