Skip to content

Commit f74fc0f

Browse files
committed
Dataflow: Fix bad join-orders.
1 parent 3dbd480 commit f74fc0f

File tree

23 files changed

+46
-46
lines changed

23 files changed

+46
-46
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplLocal.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl4.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

csharp/ql/src/semmle/code/csharp/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ private module Stage2 {
11891189
exists(Ap ap1, Ap ap2 |
11901190
revFlow(node2, _, _, ap2, config) and
11911191
readStepFwd(node1, ap1, c, node2, ap2, config) and
1192-
revFlowStore(ap1, c, /*unbind*/ ap2, _, _, _, _, _, unbind(config))
1192+
revFlowStore(ap1, c, /*unbind*/ unbindBool(ap2), _, _, _, _, _, unbind(config))
11931193
)
11941194
}
11951195

@@ -1551,7 +1551,7 @@ private module Stage3 {
15511551
) {
15521552
exists(DataFlowType contentType |
15531553
fwdFlow(node1, cc, argAp, ap1, config) and
1554-
PrevStage::storeStepCand(node1, getApprox(ap1), tc, node2, contentType, config) and
1554+
PrevStage::storeStepCand(node1, unbindBool(getApprox(ap1)), tc, node2, contentType, config) and
15551555
typecheckStore(ap1, contentType)
15561556
)
15571557
}

0 commit comments

Comments
 (0)