CodeQL library for C/C++
codeql/cpp-all 7.1.1 (changelog, source)
Search

Module ParameterizedInstructionBarrierGuard

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

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

Import path

import semmle.code.cpp.ir.dataflow.internal.DataFlowUtil

Predicates

getABarrierNode

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

getABarrierNode

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

getAnIndirectBarrierNode

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

getAnIndirectBarrierNode

Gets an indirect node that is safely guarded by the given guard check with parameter p.

getAnIndirectBarrierNode

Gets an indirect node with indirection index indirectionIndex that is safely guarded by the given guard check with parameter p.

Parameters

PParamSig
instructionGuardChecksinstructionGuardChecksSig