mirror of
https://github.com/github/codeql.git
synced 2026-04-27 09:45:15 +02:00
CPP:Only consider **argv as tainted.
This commit is contained in:
@@ -53,7 +53,7 @@ private class ArgvSource extends LocalFlowSource {
|
||||
exists(Function main, Parameter argv |
|
||||
main.hasGlobalName("main") and
|
||||
main.getParameter(1) = argv and
|
||||
this.asParameter(_) = argv
|
||||
this.asParameter(2) = argv
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user