Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2062a77 commit 89cf215Copy full SHA for 89cf215
2 files changed
cpp/ql/lib/ext/std.thread.model.yml
@@ -0,0 +1,11 @@
1
+extensions:
2
+ - addsTo:
3
+ pack: codeql/cpp-all
4
+ extensible: summaryModel
5
+ data: # namespace, type, subtypes, name, signature, ext, input, output, kind, provenance
6
+ - ["std", "thread", True, "thread", "", "", "Argument[*@1]", "Argument[0].Parameter[@0]", "value", "manual"]
7
+ - ["std", "thread", True, "thread", "", "", "Argument[*@2]", "Argument[0].Parameter[@1]", "value", "manual"]
8
+ - ["std", "thread", True, "thread", "", "", "Argument[*@3]", "Argument[0].Parameter[@2]", "value", "manual"]
9
+ - ["std", "thread", True, "thread", "", "", "Argument[*@4]", "Argument[0].Parameter[@3]", "value", "manual"]
10
+ - ["std", "thread", True, "thread", "", "", "Argument[*@5]", "Argument[0].Parameter[@4]", "value", "manual"]
11
+
cpp/ql/test/library-tests/dataflow/taint-tests/thread.cpp
@@ -8,15 +8,15 @@ struct S {
};
void thread_function_1(S* s) {
- sink(s->x); // $ MISSING: ir
+ sink(s->x); // $ ir
12
}
13
14
void thread_function_2(S s) {
15
- sink(s.x); // $ MISSING: ir
+ sink(s.x); // $ ir
16
17
18
void thread_function_3(S* s, int y) {
19
20
sink(y); // clean
21
22
0 commit comments