Skip to content

Commit 0bd81eb

Browse files
committed
Dataflow: Fix reference to viableCallable.
1 parent 6c679c3 commit 0bd81eb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private module Cached {
344344
mayBenefitFromCallContext(call, c) and
345345
c = viableCallable(ctx) and
346346
ctxtgts = count(viableImplInCallContext(call, ctx)) and
347-
tgts = strictcount(viableImpl(call)) and
347+
tgts = strictcount(viableCallable(call)) and
348348
ctxtgts < tgts
349349
)
350350
}
@@ -369,7 +369,7 @@ private module Cached {
369369
predicate reducedViableImplInReturn(DataFlowCallable c, DataFlowCall call) {
370370
exists(int tgts, int ctxtgts |
371371
mayBenefitFromCallContext(call, _) and
372-
c = viableImpl(call) and
372+
c = viableCallable(call) and
373373
ctxtgts = count(DataFlowCall ctx | c = viableImplInCallContext(call, ctx)) and
374374
tgts = strictcount(DataFlowCall ctx | viableCallable(ctx) = call.getEnclosingCallable()) and
375375
ctxtgts < tgts

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private module Cached {
344344
mayBenefitFromCallContext(call, c) and
345345
c = viableCallable(ctx) and
346346
ctxtgts = count(viableImplInCallContext(call, ctx)) and
347-
tgts = strictcount(viableImpl(call)) and
347+
tgts = strictcount(viableCallable(call)) and
348348
ctxtgts < tgts
349349
)
350350
}
@@ -369,7 +369,7 @@ private module Cached {
369369
predicate reducedViableImplInReturn(DataFlowCallable c, DataFlowCall call) {
370370
exists(int tgts, int ctxtgts |
371371
mayBenefitFromCallContext(call, _) and
372-
c = viableImpl(call) and
372+
c = viableCallable(call) and
373373
ctxtgts = count(DataFlowCall ctx | c = viableImplInCallContext(call, ctx)) and
374374
tgts = strictcount(DataFlowCall ctx | viableCallable(ctx) = call.getEnclosingCallable()) and
375375
ctxtgts < tgts

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private module Cached {
344344
mayBenefitFromCallContext(call, c) and
345345
c = viableCallable(ctx) and
346346
ctxtgts = count(viableImplInCallContext(call, ctx)) and
347-
tgts = strictcount(viableImpl(call)) and
347+
tgts = strictcount(viableCallable(call)) and
348348
ctxtgts < tgts
349349
)
350350
}
@@ -369,7 +369,7 @@ private module Cached {
369369
predicate reducedViableImplInReturn(DataFlowCallable c, DataFlowCall call) {
370370
exists(int tgts, int ctxtgts |
371371
mayBenefitFromCallContext(call, _) and
372-
c = viableImpl(call) and
372+
c = viableCallable(call) and
373373
ctxtgts = count(DataFlowCall ctx | c = viableImplInCallContext(call, ctx)) and
374374
tgts = strictcount(DataFlowCall ctx | viableCallable(ctx) = call.getEnclosingCallable()) and
375375
ctxtgts < tgts

java/ql/src/semmle/code/java/dataflow/internal/DataFlowImplCommon.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ private module Cached {
344344
mayBenefitFromCallContext(call, c) and
345345
c = viableCallable(ctx) and
346346
ctxtgts = count(viableImplInCallContext(call, ctx)) and
347-
tgts = strictcount(viableImpl(call)) and
347+
tgts = strictcount(viableCallable(call)) and
348348
ctxtgts < tgts
349349
)
350350
}
@@ -369,7 +369,7 @@ private module Cached {
369369
predicate reducedViableImplInReturn(DataFlowCallable c, DataFlowCall call) {
370370
exists(int tgts, int ctxtgts |
371371
mayBenefitFromCallContext(call, _) and
372-
c = viableImpl(call) and
372+
c = viableCallable(call) and
373373
ctxtgts = count(DataFlowCall ctx | c = viableImplInCallContext(call, ctx)) and
374374
tgts = strictcount(DataFlowCall ctx | viableCallable(ctx) = call.getEnclosingCallable()) and
375375
ctxtgts < tgts

0 commit comments

Comments
 (0)