Skip to content

Commit c306ba4

Browse files
committed
C++: one more PR comment
1 parent 66ce915 commit c306ba4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cpp/ql/lib/experimental/semmle/code/cpp/dataflow/ProductFlow.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ module ProductFlow {
3030
}
3131

3232
private import Internal
33+
3334
module Internal {
3435
class Conf1 extends DataFlow::Configuration {
3536
Conf1() { this = "Conf1" }
@@ -54,7 +55,9 @@ module ProductFlow {
5455
}
5556

5657
override predicate isSink(DataFlow::Node sink) {
57-
exists(Configuration conf | conf.isSinkPair(_, sink))
58+
exists(Configuration conf, DataFlow::Node sink1 |
59+
conf.isSinkPair(sink1, sink) and any(Conf1 c).hasFlow(_, sink1)
60+
)
5861
}
5962
}
6063
}

0 commit comments

Comments
 (0)