|
|
|
@ -41,6 +41,9 @@ predicate potentiallyDangerousFunction(Function f, string message) {
|
|
|
|
|
) or ( |
|
|
|
|
f.getQualifiedName() = "strerror" and |
|
|
|
|
message = "Call to strerror() is not thread-safe. Use strerror_r() or printf()'s %m format string instead." |
|
|
|
|
) or ( |
|
|
|
|
f.getQualifiedName() = "accept" and |
|
|
|
|
message = "Call to accept() is not O_CLOEXEC-safe. Use accept4() instead." |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|