Skip to content

Commit 15c8968

Browse files
committed
gogogo shared code.
1 parent c63283f commit 15c8968

File tree

3 files changed

+222
-43
lines changed

3 files changed

+222
-43
lines changed

shared/dataflow/codeql/dataflow/DataFlow.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ signature module InputSig<LocationSig Location> {
347347
/** Holds if `fieldFlowBranchLimit` should be ignored for flow going into/out of `c`. */
348348
default predicate ignoreFieldFlowBranchLimit(DataFlowCallable c) { none() }
349349

350-
Content getLambdaReturnContent(LambdaCallKind kind);
350+
Content getLambdaReturnContent(LambdaCallKind kind, ReturnKind retKind);
351351

352352
Content getLambdaArgumentContent(LambdaCallKind kind, ArgumentPosition pos);
353353

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
423423

424424
pragma[nomagic]
425425
private predicate readSetEx(NodeEx node1, ContentSet c, NodeEx node2) {
426-
readSet(pragma[only_bind_into](node1.asNode()), c, pragma[only_bind_into](node2.asNode())) and
426+
readSet(node1, c, node2) and
427427
stepFilter(node1, node2)
428428
or
429429
exists(Node n |
@@ -462,8 +462,7 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
462462
private predicate storeExUnrestricted(
463463
NodeEx node1, Content c, NodeEx node2, DataFlowType contentType, DataFlowType containerType
464464
) {
465-
store(pragma[only_bind_into](node1.asNode()), c, pragma[only_bind_into](node2.asNode()),
466-
contentType, containerType) and
465+
store(node1, c, node2, contentType, containerType) and
467466
stepFilter(node1, node2)
468467
}
469468

@@ -478,16 +477,14 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
478477
hasReadStep(c)
479478
}
480479

481-
pragma[nomagic]
482-
private predicate viableReturnPosOutEx(DataFlowCall call, ReturnPosition pos, NodeEx out) {
483-
viableReturnPosOut(call, pos, out.asNode())
484-
}
485-
486-
pragma[nomagic]
487-
private predicate viableParamArgEx(DataFlowCall call, ParamNodeEx p, ArgNodeEx arg) {
488-
viableParamArg(call, p.asNode(), arg.asNode())
489-
}
490-
480+
// pragma[nomagic]
481+
// private predicate viableReturnPosOutEx(DataFlowCall call, ReturnPosition pos, NodeEx out) {
482+
// viableReturnPosOut(call, pos, out.asNode())
483+
// }
484+
// pragma[nomagic]
485+
// private predicate viableParamArgEx(DataFlowCall call, ParamNodeEx p, ArgNodeEx arg) {
486+
// viableParamArg(call, p.asNode(), arg.asNode())
487+
// }
491488
/**
492489
* Holds if field flow should be used for the given configuration.
493490
*/

0 commit comments

Comments
 (0)