mirror of
https://github.com/github/codeql.git
synced 2026-03-26 09:18:16 +01:00
13 lines
499 B
Plaintext
13 lines
499 B
Plaintext
|
|
import python
|
|
private import semmle.python.pointsto.PointsTo
|
|
private import semmle.python.pointsto.PointsToContext
|
|
import Util
|
|
|
|
from EssaVariable var, string name, Object o, PointsToContext ctx
|
|
where PointsTo::Test::ssa_variable_named_attribute_points_to(var, ctx, name, o, _, _) and not var.getSourceVariable() instanceof SpecialSsaSourceVariable
|
|
select
|
|
locate(var.getDefinition().getLocation(), "abdfgikm"), var.getRepresentation(),
|
|
name, var.getDefinition().getRepresentation(), repr(o), ctx
|
|
|