CodeQL library for Go
codeql/go-all 0.7.15-dev (changelog, source)
Search

Module BarrierGuard

Provides a set of barrier nodes for a guard that validates an expression.

This is expected to be used in isBarrier/isSanitizer definitions in data flow and taint tracking.

Import path

import semmle.go.dataflow.internal.DataFlowUtil

Predicates

getABarrierNode

Gets a node that is safely guarded by the given guard check.

getABarrierNodeForGuard

Gets a node that is safely guarded by the given guard check.

Parameters

guardChecksguardChecksSig