Skip to content

Commit 605dc1c

Browse files
authored
Merge pull request #22707 from hvitved/unified/derived-store-read-step-fix-join
Unified: Fix bad join in `derivedStoreReadStep`
2 parents a7209e2 + 8ad0ff5 commit 605dc1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎unified/ql/lib/codeql/unified/internal/StaticNameBinding.qll‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ module Track<TrackInputSig Input> {
341341
pragma[nomagic]
342342
private predicate derivedStoreReadStep(NameBindingNode node1, NameBindingNode node2) {
343343
exists(NamespaceNode namespace, string name |
344-
node1 = namespace.getMember(name) and // getMember() combines a store step with subsequent inheritance steps
345-
readStep(namespace.ref(), name, node2) and
344+
node1 = namespace.getMember(pragma[only_bind_into](name)) and // getMember() combines a store step with subsequent inheritance steps
345+
readStep(namespace.ref(), pragma[only_bind_into](name), node2) and
346346
node1 != node2
347347
)
348348
}

0 commit comments

Comments
 (0)