Skip to content

Commit 350d5bf

Browse files
committed
C++: Update QLDoc on 'modeledFlowBarrier'.
1 parent 671904d commit 350d5bf

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,14 @@ private predicate inOut(FIO::FunctionInput input, FIO::FunctionOutput output) {
812812
}
813813

814814
/**
815-
* Holds if there should not be use-use flow out of `n` (or a conversion that
816-
* flows to `n`).
815+
* Holds if there should not be use-use flow out of `n`. That is, `n` is
816+
* an out-barrier to use-use flow. This includes:
817+
*
818+
* - an input to a call that would be assumed to have use-use flow to the same
819+
* argument as an output, but this flow should be blocked because the
820+
* function is modeled with another flow to that output (for example the
821+
* first argument of `strcpy`).
822+
* - a conversion that flows to such an input.
817823
*/
818824
private predicate modeledFlowBarrier(Node n) {
819825
exists(

0 commit comments

Comments
 (0)