Skip to content

Commit 723778f

Browse files
committed
C++: Limit flow through sinks and sources in cpp/upcast-array-pointer-arithmetic
1 parent 359aa02 commit 723778f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/ql/src/Likely Bugs/Conversion/CastArrayPointerArithmetic.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ module CastToPointerArithFlowConfig implements DataFlow::StateConfigSig {
4444
) and
4545
getFullyConvertedType(node) = state
4646
}
47+
48+
predicate isBarrierIn(DataFlow::Node node) { isSource(node, _) }
49+
50+
predicate isBarrierOut(DataFlow::Node node) { isSink(node, _) }
4751
}
4852

4953
/**

0 commit comments

Comments
 (0)