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:
Mathew Payne
2025-05-16 18:55:00 +01:00
committed by GitHub
parent 94fe9b692f
commit bbce0d0c65

View File

@@ -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
)