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 029c013 commit 02b88d5Copy full SHA for 02b88d5
2 files changed
cpp/ql/lib/ext/CSimpleArray.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
+ - ["", "CSimpleArray", True, "CSimpleArray", "", "", "Argument[*0].Element[@]", "Argument[-1].Element[@]", "value", "manual"]
7
+ - ["", "CSimpleArray", True, "Add", "", "", "Argument[*0]", "Argument[-1].Element[@]", "value", "manual"]
8
+ - ["", "CSimpleArray", True, "GetData", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"]
9
+ - ["", "CSimpleArray", True, "SetAtIndex", "", "", "Argument[*1]", "Argument[-1].Element[@]", "value", "manual"]
10
+ - ["", "CSimpleArray", True, "operator[]", "", "", "Argument[-1].Element[@]", "ReturnValue[*@]", "value", "manual"]
11
+ - ["", "CSimpleArray", True, "operator=", "", "", "Argument[*0].Element[@]", "Argument[-1].Element[@]", "value", "manual"]
cpp/ql/test/library-tests/dataflow/taint-tests/atl.cpp
@@ -734,19 +734,19 @@ void test_CSimpleArray() {
734
{
735
CSimpleArray<int> a;
736
a.Add(x);
737
- sink(a[0]); // $ MISSING: ir
+ sink(a[0]); // $ ir
738
a.Add(0);
739
740
741
CSimpleArray<int> a2;
742
sink(a2[0]);
743
a2 = a;
744
- sink(a2[0]); // $ MISSING: ir
+ sink(a2[0]); // $ ir
745
}
746
747
748
749
- sink(a.GetData()); // $ MISSING: ir
+ sink(a.GetData()); // $ ir
750
751
752
int pos = a2.Find(x);
0 commit comments