C++: Suppress FieldAddressInstruction taint

See code comment. This fixes false positives on openjdk/jdk.
This commit is contained in:
Jonas Jensen
2020-04-06 15:10:47 +02:00
parent 3b76509159
commit e37aab5002
4 changed files with 11 additions and 7 deletions

View File

@@ -93,8 +93,8 @@ struct Point {
int y;
void callSink() {
sink(this->x); // tainted
sink(this->y); // not tainted [FALSE POSITIVE]
sink(this->x); // tainted [NOT DETECTED]
sink(this->y); // not tainted
}
};