We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e839d commit 843b72bCopy full SHA for 843b72b
1 file changed
cpp/ql/src/semmle/code/cpp/models/implementations/Gets.qll
@@ -10,7 +10,7 @@ import semmle.code.cpp.models.interfaces.SideEffect
10
class GetsFunction extends DataFlowFunction, TaintFunction, ArrayFunction, AliasFunction,
11
SideEffectFunction {
12
GetsFunction() {
13
- exists(string name | name = getName() |
+ exists(string name | hasGlobalOrStdName(name) |
14
name = "gets" or // gets(str)
15
name = "fgets" or // fgets(str, num, stream)
16
name = "fgetws" // fgetws(wstr, num, stream)
0 commit comments