mirror of
https://github.com/github/codeql.git
synced 2026-04-21 15:05:56 +02:00
C++: Add comment for false positives in swap tests
This commit is contained in:
@@ -71,7 +71,7 @@ void test_copy_assignment_operator()
|
||||
|
||||
swap(z1, z2);
|
||||
|
||||
sink(z2.data1); // tainted
|
||||
sink(z2.data1); // tainted [FALSE NEGATIVE in IR]
|
||||
sink(z1.data1); // clean [FALSE POSITIVE]
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ void test_copy_assignment_operator()
|
||||
|
||||
swap(z1, z2);
|
||||
|
||||
sink(z2.data1); // tainted
|
||||
sink(z2.data1); // tainted [FALSE NEGATIVE in IR]
|
||||
sink(z1.data1); // clean [FALSE POSITIVE]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user