Skip to content
This repository was archived by the owner on Jan 5, 2023. It is now read-only.

Commit bc74bce

Browse files
authored
Merge pull request #459 from owen-mc/update-barrier-guard-comment
Make comment on BarrierGuard more specific
2 parents f8c3fbf + 06c6ced commit bc74bce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ql/src/semmle/go/dataflow/internal/DataFlowUtil.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,10 @@ predicate localFlow(Node source, Node sink) { localFlowStep*(source, sink) }
11151115
* characteristic predicate precisely specifying the guard, and override
11161116
* `checks` to specify what is being validated and in which branch.
11171117
*
1118-
* It is important that all extending classes in scope are disjoint.
1118+
* When using a data-flow or taint-flow configuration `cfg`, it is important
1119+
* that any classes extending BarrierGuard in scope which are not used in `cfg`
1120+
* are disjoint from any classes extending BarrierGuard in scope which are used
1121+
* in `cfg`.
11191122
*/
11201123
abstract class BarrierGuard extends Node {
11211124
/** Holds if this guard validates `e` upon evaluating to `branch`. */

0 commit comments

Comments
 (0)