Python: Fix os.popen modeling

Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
Rasmus Wriedt Larsen
2020-09-23 11:18:32 +02:00
committed by GitHub
parent 624cdd339a
commit 6aec2ec673

View File

@@ -38,7 +38,7 @@ private module Stdlib {
/** Gets a reference to the `os.popen` function. */
DataFlow::Node popen(DataFlow::TypeTracker t) {
t.start() and
result = DataFlow::importMember("os", "system")
result = DataFlow::importMember("os", "popen")
or
t.startInAttr("popen") and
result = os()