Skip to content

Commit 39afb18

Browse files
committed
Fix bad join order
1 parent 80e8015 commit 39afb18

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

go/ql/lib/semmle/go/dataflow/internal/FlowSummaryImpl.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,12 @@ module SourceSinkInterpretationInput implements
378378
e = mid.asElement()
379379
|
380380
(c = "Parameter" or c = "") and
381-
node.asNode().asParameter() = e.asEntity()
381+
n.asParameter() = pragma[only_bind_into](e).asEntity()
382382
or
383383
exists(DataFlow::FieldReadNode frn | frn = n |
384384
c = "" and
385-
frn.getField() = e.asEntity() and
386-
elementAppliesToQualifier(e, frn.getBase())
385+
frn.getField() = pragma[only_bind_into](e).asEntity() and
386+
elementAppliesToQualifier(pragma[only_bind_into](e), frn.getBase())
387387
)
388388
)
389389
}
@@ -404,7 +404,7 @@ module SourceSinkInterpretationInput implements
404404
|
405405
c = "" and
406406
fw.writesField(base, f, node.asNode()) and
407-
elementAppliesToQualifier(e, base)
407+
elementAppliesToQualifier(pragma[only_bind_into](e), base)
408408
)
409409
}
410410
}

0 commit comments

Comments
 (0)