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.
1 parent 30e2c44 commit c79a724Copy full SHA for c79a724
cpp/ql/lib/semmle/code/cpp/security/FlowSources.qll
@@ -55,12 +55,12 @@ private class LocalModelSource extends LocalFlowSource {
55
}
56
57
/**
58
- * A local data flow source that the `argv` parameter to `main`.
+ * A local data flow source that the `argv` parameter to `main` or `wmain`.
59
*/
60
private class ArgvSource extends LocalFlowSource {
61
ArgvSource() {
62
exists(Function main, Parameter argv |
63
- main.hasGlobalName("main") and
+ main.hasGlobalName(["main", "wmain"])
64
main.getParameter(1) = argv and
65
this.asParameter(2) = argv
66
)
0 commit comments