Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions python/ql/src/semmle/python/types/Object.qll
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ private cached predicate is_an_object(@py_object obj) {
exists(@py_cobject mod_type | py_special_objects(mod_type, "ModuleType") and py_cobjecttypes(obj, mod_type)) and
exists(Module m | py_cobjectnames(obj, m.getName()))
)
and (
/* Exclude unmatched builtin objects in the library trap files */
obj instanceof ControlFlowNode or
py_cobjectnames(obj, _) or
py_cobjecttypes(obj, _) or
py_special_objects(obj, _)
)
}

/** Instances of this class represent objects in the Python program. However, since
Expand Down