Rust: mark one value flow as spurious (should be taint)

This commit is contained in:
Paolo Tranquilli
2025-06-20 14:13:37 +02:00
committed by GitHub
parent 2bf5a70884
commit 691281a481

View File

@@ -35,7 +35,7 @@ fn string_add() {
let s4 = s1 + s3;
let s5 = s2 + s3;
sink(s4); // $ hasValueFlow=83
sink(s4); // $ SPURIOUS: hasValueFlow=83 MISSING: hasTaintFlow=83
sink(s5);
}