mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Python: Limit py/use-of-input to Python 2
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user