mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
feat(cpp): Update FlowSources to add wmain
This commit is contained in:
@@ -55,12 +55,12 @@ private class LocalModelSource extends LocalFlowSource {
|
||||
}
|
||||
|
||||
/**
|
||||
* A local data flow source that the `argv` parameter to `main`.
|
||||
* A local data flow source that the `argv` parameter to `main` or `wmain`.
|
||||
*/
|
||||
private class ArgvSource extends LocalFlowSource {
|
||||
ArgvSource() {
|
||||
exists(Function main, Parameter argv |
|
||||
main.hasGlobalName("main") and
|
||||
main.hasGlobalName(["main", "wmain"])
|
||||
main.getParameter(1) = argv and
|
||||
this.asParameter(2) = argv
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user