Skip to content

Commit c79a724

Browse files
authored
feat(cpp): Update FlowSources to add wmain
1 parent 30e2c44 commit c79a724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/lib/semmle/code/cpp/security/FlowSources.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ private class LocalModelSource extends LocalFlowSource {
5555
}
5656

5757
/**
58-
* A local data flow source that the `argv` parameter to `main`.
58+
* A local data flow source that the `argv` parameter to `main` or `wmain`.
5959
*/
6060
private class ArgvSource extends LocalFlowSource {
6161
ArgvSource() {
6262
exists(Function main, Parameter argv |
63-
main.hasGlobalName("main") and
63+
main.hasGlobalName(["main", "wmain"])
6464
main.getParameter(1) = argv and
6565
this.asParameter(2) = argv
6666
)

0 commit comments

Comments
 (0)