Skip to content

Commit 88256e2

Browse files
committed
Convert model from QL to MaD
1 parent f844105 commit 88256e2

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

go/ql/lib/ext/os.model.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ extensions:
4646
pack: codeql/go-all
4747
extensible: sourceModel
4848
data:
49+
- ["os", "", False, "Args", "", "", "", "commandargs", "manual"]
4950
- ["os", "", False, "Environ", "", "", "ReturnValue", "environment", "manual"] # TODO: when sources can have access paths, use .ArrayElement
5051
- ["os", "", False, "ExpandEnv", "", "", "ReturnValue", "environment", "manual"]
5152
- ["os", "", False, "Getenv", "", "", "ReturnValue", "environment", "manual"]

go/ql/lib/semmle/go/frameworks/stdlib/Os.qll

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,4 @@ module Os {
4343
input = inp and output = outp
4444
}
4545
}
46-
47-
private class ArgsSource extends SourceNode {
48-
ArgsSource() { exists(Variable v | v.hasQualifiedName("os", "Args") | this = v.getARead()) }
49-
50-
override string getThreatModel() { result = "commandargs" }
51-
}
5246
}

0 commit comments

Comments
 (0)