Python: Limit py/use-of-input to Python 2

This commit is contained in:
Taus
2021-05-12 21:23:16 +00:00
committed by GitHub
parent fad55b3635
commit 79cfe5aca2

View File

@@ -16,6 +16,7 @@ import semmle.python.ApiGraphs
from DataFlow::CallCfgNode call
where
major_version() = 2 and
call = API::builtin("input").getACall() and
call != API::builtin("raw_input").getACall()
select call, "The unsafe built-in function 'input' is used in Python 2."