File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed
cpp/ql/test/library-tests/dataflow/models-as-data Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -230,3 +230,10 @@ sourceCallables
230
230
| tests.cpp:463:6:463:6 | x |
231
231
| tests.cpp:464:36:464:36 | s |
232
232
| tests.cpp:465:6:465:6 | y |
233
+ | tests.cpp:469:7:469:9 | INT |
234
+ | tests.cpp:471:5:471:17 | receive_array |
235
+ | tests.cpp:471:23:471:23 | a |
236
+ | tests.cpp:473:6:473:23 | test_receive_array |
237
+ | tests.cpp:474:6:474:6 | x |
238
+ | tests.cpp:475:6:475:10 | array |
239
+ | tests.cpp:476:6:476:6 | y |
Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ private class TestSummaries extends SummaryModelCsv {
98
98
";;false;madCallArg0ReturnToReturnFirst;;;Argument[0].ReturnValue;ReturnValue.Field[first];value" ,
99
99
";;false;madCallArg0WithValue;;;Argument[1];Argument[0].Parameter[0];value" ,
100
100
";;false;madCallReturnValueIgnoreFunction;;;Argument[1];ReturnValue;value" ,
101
- ";StructWithTypedefInParameter<T>;true;parameter_ref_to_return_ref;(const T &);;Argument[*0];ReturnValue[*];value"
101
+ ";StructWithTypedefInParameter<T>;true;parameter_ref_to_return_ref;(const T &);;Argument[*0];ReturnValue[*];value" ,
102
+ ";;false;receive_array;(int[20]);;Argument[*0];ReturnValue;taint"
102
103
]
103
104
}
104
105
}
Original file line number Diff line number Diff line change @@ -464,4 +464,15 @@ void test_parameter_ref_to_return_ref() {
464
464
StructWithTypedefInParameter<int > s;
465
465
int y = s.parameter_ref_to_return_ref (x);
466
466
sink (y); // $ ir
467
+ }
468
+
469
+ using INT = int ;
470
+
471
+ int receive_array (INT a[20 ]); // $ MISSING: interpretElement
472
+
473
+ void test_receive_array () {
474
+ int x = source ();
475
+ int array[10 ] = {x};
476
+ int y = receive_array (array);
477
+ sink (y); // $ MISSING: ir
467
478
}
You can’t perform that action at this time.
0 commit comments