Skip to content

Commit 40d25cb

Browse files
authored
Merge pull request #9849 from tausbn/python-fix-bad-essa-getInput-join
Python: Fix bad join in ESSA `getInput`
2 parents 7fc95fb + 8c0725e commit 40d25cb

File tree

1 file changed

+2
-2
lines changed
  • python/ql/lib/semmle/python/essa

1 file changed

+2
-2
lines changed

python/ql/lib/semmle/python/essa/Essa.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,8 @@ class EssaEdgeRefinement extends EssaDefinition, TEssaEdgeDefinition {
212212
/** Gets the SSA variable to which this refinement applies. */
213213
EssaVariable getInput() {
214214
exists(SsaSourceVariable var, EssaDefinition def |
215-
var = this.getSourceVariable() and
216-
var = def.getSourceVariable() and
215+
pragma[only_bind_into](var) = this.getSourceVariable() and
216+
pragma[only_bind_into](var) = def.getSourceVariable() and
217217
def.reachesEndOfBlock(this.getPredecessor()) and
218218
result.getDefinition() = def
219219
)

0 commit comments

Comments
 (0)