Skip to content

Commit fac5296

Browse files
committed
Avoid duplicate results using in-barriers
1 parent 34b2e3e commit fac5296

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

go/ql/lib/semmle/go/security/BrokenCryptoAlgorithmQuery.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ private module BrokenCryptoAlgorithmConfig implements DataFlow::ConfigSig {
2424

2525
predicate isSink(DataFlow::Node sink) { sink instanceof Sink }
2626

27+
predicate isBarrierIn(DataFlow::Node node) { isSource(node) }
28+
2729
predicate isBarrier(DataFlow::Node node) { node instanceof Sanitizer }
2830

2931
predicate observeDiffInformedIncrementalMode() { any() }

0 commit comments

Comments
 (0)