mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C++: use Declaration.hasGlobalOrStdName
This commit is contained in:
@@ -15,5 +15,5 @@ import cpp
|
||||
from FunctionCall call, Function target
|
||||
where
|
||||
call.getTarget() = target and
|
||||
target.hasGlobalName("gets")
|
||||
target.hasGlobalOrStdName("gets")
|
||||
select call, "gets does not guard against buffer overflow"
|
||||
|
||||
Reference in New Issue
Block a user