Skip to content

Commit eb4efc4

Browse files
authored
Merge pull request #1023 from jbj/gets-qualified
C++: Use getQualifiedName() = "gets", not hasName
2 parents 1b35a4e + 0ed1618 commit eb4efc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-676/PotentiallyDangerousFunction.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ predicate potentiallyDangerousFunction(Function f, string message) {
1616
f.getQualifiedName() = "gmtime" and
1717
message = "Call to gmtime is potentially dangerous"
1818
) or (
19-
f.hasName("gets") and
19+
f.getQualifiedName() = "gets" and
2020
message = "gets does not guard against buffer overflow"
2121
)
2222
}

0 commit comments

Comments
 (0)