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.
2 parents d7e07b0 + 9d2b46e commit df28e3bCopy full SHA for df28e3b
cpp/ql/lib/change-notes/2025-05-16-wmain-support.md
@@ -0,0 +1,4 @@
1
+---
2
+category: feature
3
4
+* Added support for `wmain` as part of the ArgvSource model.
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"]) and
64
main.getParameter(1) = argv and
65
this.asParameter(2) = argv
66
)
0 commit comments