diff --git a/cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFunction.ql b/cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFunction.ql index 0ff3975256e8..43ba3b4a25db 100644 --- a/cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFunction.ql +++ b/cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFunction.ql @@ -16,7 +16,7 @@ predicate potentiallyDangerousFunction(Function f, string message) { f.getQualifiedName() = "gmtime" and message = "Call to gmtime is potentially dangerous" ) or ( - f.hasName("gets") and + f.getQualifiedName() = "gets" and message = "gets does not guard against buffer overflow" ) }