lgtm: dirname() is now icky

This commit is contained in:
Lennart Poettering 2022-08-22 14:58:13 +02:00
parent 15e2182fb3
commit 0b1c6448be

View file

@ -46,6 +46,9 @@ predicate potentiallyDangerousFunction(Function f, string message) {
) or (
f.getQualifiedName() = "accept" and
message = "Call to accept() is not O_CLOEXEC-safe. Use accept4() instead."
) or (
f.getQualifiedName() = "dirname" and
message = "Call dirname() is icky. Use path_extract_directory() instead."
)
}