Skip to content

Commit d13e9ee

Browse files
committed
Fix implementation of barrierNode for barrier models
1 parent 5485925 commit d13e9ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/frameworks/data/internal/ApiGraphModels.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ module ModelOutput {
878878
* Holds if `node` is specified as a barrier with the given kind in an external model.
879879
*/
880880
predicate barrierNode(DataFlow::Node node, string kind) {
881-
node = getABarrierNode(kind).asSource()
881+
node = getABarrierNode(kind).asSink()
882882
or
883883
node = DataFlow::ExternalBarrierGuard::getAnExternalBarrierNode(kind)
884884
}

0 commit comments

Comments
 (0)