Skip to content

Commit 843b72b

Browse files
committed
C++: hasGlobalOrStdName().
1 parent a0e839d commit 843b72b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • cpp/ql/src/semmle/code/cpp/models/implementations

cpp/ql/src/semmle/code/cpp/models/implementations/Gets.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import semmle.code.cpp.models.interfaces.SideEffect
1010
class GetsFunction extends DataFlowFunction, TaintFunction, ArrayFunction, AliasFunction,
1111
SideEffectFunction {
1212
GetsFunction() {
13-
exists(string name | name = getName() |
13+
exists(string name | hasGlobalOrStdName(name) |
1414
name = "gets" or // gets(str)
1515
name = "fgets" or // fgets(str, num, stream)
1616
name = "fgetws" // fgetws(wstr, num, stream)

0 commit comments

Comments
 (0)