Skip to content

Commit f20a690

Browse files
committed
C++: Remove flow through ssa phi back-edges.
1 parent 0b7fc3c commit f20a690

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cpp/ql/src/experimental/Likely Bugs/OverrunWriteProductFlow.ql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ module StringSizeConfig implements ProductFlow::StateConfigSig {
111111

112112
predicate isBarrier2(DataFlow::Node node, FlowState2 state) { none() }
113113

114+
predicate isBarrierOut2(DataFlow::Node node) {
115+
node = any(DataFlow::SsaPhiNode phi).getAnInput(true)
116+
}
117+
114118
predicate isAdditionalFlowStep1(
115119
DataFlow::Node node1, FlowState1 state1, DataFlow::Node node2, FlowState1 state2
116120
) {

0 commit comments

Comments
 (0)