Skip to content

Commit ef940e8

Browse files
committed
C++: Add comment for false positives in swap tests
1 parent 0c99b36 commit ef940e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void test_copy_assignment_operator()
7171

7272
swap(z1, z2);
7373

74-
sink(z2.data1); // tainted
74+
sink(z2.data1); // tainted [FALSE NEGATIVE in IR]
7575
sink(z1.data1); // clean [FALSE POSITIVE]
7676
}
7777

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void test_copy_assignment_operator()
7171

7272
swap(z1, z2);
7373

74-
sink(z2.data1); // tainted
74+
sink(z2.data1); // tainted [FALSE NEGATIVE in IR]
7575
sink(z1.data1); // clean [FALSE POSITIVE]
7676
}
7777

0 commit comments

Comments
 (0)