Skip to content

Commit 28ab092

Browse files
committed
C++: Add 'tainted' markers to standalone_iterators.cpp test.
1 parent fce76e2 commit 28ab092

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cpp/ql/test/library-tests/dataflow/taint-tests/standalone_iterators.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ class non_iterator {
3737
};
3838

3939
void test_typedefs(int_iterator_by_typedefs source1) {
40-
sink(*source1);
41-
sink(*(source1++));
42-
sink(*(++source1));
40+
sink(*source1); // tainted
41+
sink(*(source1++)); // tainted
42+
sink(*(++source1)); // tainted
4343
}
4444

4545
void test_trait(int_iterator_by_trait source1) {
46-
sink(*source1);
47-
sink(*(source1++));
48-
sink(*(++source1));
46+
sink(*source1); // tainted
47+
sink(*(source1++)); // tainted
48+
sink(*(++source1)); // tainted
4949
}
5050

5151
void test_non_iterator(non_iterator source1) {

0 commit comments

Comments
 (0)