Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bf78c62 commit 2b72a50Copy full SHA for 2b72a50
1 file changed
python/ql/src/semmle/python/types/Extensions.qll
@@ -109,10 +109,10 @@ class ReModulePointToExtension extends PointsToExtension {
109
}
110
111
override predicate pointsTo(Context context, ObjectInternal value, ControlFlowNode origin) {
112
- value = Module::named("sre_constants").attr("SRE_FLAG_" + name) and
113
- exists(ModuleObjectInternal sre_constants |
+ exists(ModuleObjectInternal sre_constants, CfgOrigin orig |
114
sre_constants.getName() = "sre_constants" and
115
- sre_constants.attribute(name, value, CfgOrigin::fromCfgNode(origin))
+ sre_constants.attribute("SRE_FLAG_" + name, value, orig) and
+ origin = orig.asCfgNodeOrHere(this)
116
)
117
and context.appliesTo(this)
118
0 commit comments