mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Update cpp/ql/lib/semmle/code/cpp/security/FlowSources.qll
Co-authored-by: Jeroen Ketema <93738568+jketema@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,7 @@ private class LocalModelSource extends LocalFlowSource {
|
||||
private class ArgvSource extends LocalFlowSource {
|
||||
ArgvSource() {
|
||||
exists(Function main, Parameter argv |
|
||||
main.hasGlobalName(["main", "wmain"])
|
||||
main.hasGlobalName(["main", "wmain"]) and
|
||||
main.getParameter(1) = argv and
|
||||
this.asParameter(2) = argv
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user