Skip to content

Commit a7029ab

Browse files
committed
Python points-to: Importing from 'unknown' gives 'unknown'.
1 parent 853a3c8 commit a7029ab

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/ql/src/semmle/python/pointsto/PointsTo.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,6 +607,9 @@ module InterModulePointsTo {
607607
mod.attribute(name, value, orig) and
608608
origin = orig.asCfgNodeOrHere(f)
609609
)
610+
or
611+
PointsToInternal::pointsTo(f.getModule(_), context, ObjectInternal::unknown(), _) and
612+
value = ObjectInternal::unknown() and origin = f
610613
}
611614

612615
private predicate from_import_imports(ImportMemberNode f, PointsToContext context, ModuleObjectInternal mod, string name) {

0 commit comments

Comments
 (0)