2 parents a7209e2 + 8ad0ff5 commit 605dc1cCopy full SHA for 605dc1c
1 file changed
unified/ql/lib/codeql/unified/internal/StaticNameBinding.qll
@@ -341,8 +341,8 @@ module Track<TrackInputSig Input> {
341
pragma[nomagic]
342
private predicate derivedStoreReadStep(NameBindingNode node1, NameBindingNode node2) {
343
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
+ node1 = namespace.getMember(pragma[only_bind_into](name)) and // getMember() combines a store step with subsequent inheritance steps
+ readStep(namespace.ref(), pragma[only_bind_into](name), node2) and
346
node1 != node2
347
)
348
}
0 commit comments