C++: Add indirect barrier guard to 'cpp/unbounded-write' to prevent FPs after fixing conflation.

This commit is contained in:
Mathias Vorreiter Pedersen
2026-01-15 18:31:54 +00:00
parent 28681508f3
commit 6da7890ff5

View File

@@ -122,7 +122,8 @@ module Config implements DataFlow::ConfigSig {
predicate isBarrier(DataFlow::Node node) {
// Block flow if the node is guarded by any <, <= or = operations.
node = DataFlow::BarrierGuard<lessThanOrEqual/3>::getABarrierNode()
node = DataFlow::BarrierGuard<lessThanOrEqual/3>::getABarrierNode() or
node = DataFlow::BarrierGuard<lessThanOrEqual/3>::getAnIndirectBarrierNode()
}
predicate observeDiffInformedIncrementalMode() { any() }