mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
C++: Implement YML extension models.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/cpp-all
|
||||
extensible: sourceModel
|
||||
data: # namespace, type, subtypes, name, signature, ext, output, kind, provenance
|
||||
- ["", "", False, "ymlSource", "", "", "ReturnValue", "local", "manual"]
|
||||
- addsTo:
|
||||
pack: codeql/cpp-all
|
||||
extensible: sinkModel
|
||||
data: # namespace, type, subtypes, name, signature, ext, input, kind, provenance
|
||||
- ["", "", False, "ymlSink", "", "", "Argument[0]", "test-sink", "manual"]
|
||||
- addsTo:
|
||||
pack: codeql/cpp-all
|
||||
extensible: summaryModel
|
||||
data: # namespace, type, subtypes, name, signature, ext, input, output, kind, provenance
|
||||
- ["", "", False, "ymlStep", "", "", "Argument[0]", "ReturnValue", "taint", "manual"]
|
||||
@@ -0,0 +1,3 @@
|
||||
| test.cpp:9:10:9:10 | 0 | test-sink |
|
||||
| test.cpp:11:10:11:10 | x | test-sink |
|
||||
| test.cpp:15:10:15:10 | y | test-sink |
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/cpp-all
|
||||
extensible: sinkModel
|
||||
data: # namespace, type, subtypes, name, signature, ext, input, kind, provenance
|
||||
- ["", "", False, "ymlSink", "", "", "Argument[0]", "test-sink", "manual"]
|
||||
@@ -0,0 +1 @@
|
||||
| test.cpp:7:10:7:18 | call to ymlSource | local |
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/cpp-all
|
||||
extensible: sourceModel
|
||||
data: # namespace, type, subtypes, name, signature, ext, output, kind, provenance
|
||||
- ["", "", False, "ymlSource", "", "", "ReturnValue", "local", "manual"]
|
||||
@@ -0,0 +1 @@
|
||||
| test.cpp:13:18:13:18 | x | test.cpp:13:10:13:16 | call to ymlStep |
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
extensions:
|
||||
- addsTo:
|
||||
pack: codeql/cpp-all
|
||||
extensible: summaryModel
|
||||
data: # namespace, type, subtypes, name, signature, ext, input, output, kind, provenance
|
||||
- ["", "", False, "ymlStep", "", "", "Argument[0]", "ReturnValue", "taint", "manual"]
|
||||
@@ -8,9 +8,9 @@ void test() {
|
||||
|
||||
ymlSink(0);
|
||||
|
||||
ymlSink(x); // $ MISSING: ir
|
||||
ymlSink(x); // $ ir
|
||||
|
||||
int y = ymlStep(x);
|
||||
|
||||
ymlSink(y); // $ MISSING: ir
|
||||
ymlSink(y); // $ ir
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user