We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d595aa commit a2de057Copy full SHA for a2de057
cpp/ql/test/library-tests/dataflow/dataflow-tests/test.cpp
@@ -491,3 +491,20 @@ void intArraySourceCaller2() {
491
sink(local); // tainted
492
sink(*local); // clean
493
}
494
+
495
+///////////////////////////////////////////////////////////////////////////////
496
497
+void throughStmtExpr(int source1, int clean1) {
498
+ sink( ({ source1; }) ); // tainted (FALSE NEGATIVE)
499
+ sink( ({ clean1; }) ); // clean
500
501
+ int local = ({
502
+ int tmp;
503
+ if (clean1)
504
+ tmp = source1;
505
+ else
506
+ tmp = clean1;
507
+ tmp;
508
+ });
509
+ sink(local); // tainted (FALSE NEGATIVE)
510
+}
0 commit comments