From 0b1c6448bed4e925a4ec5aa160c0aa90b5768185 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 22 Aug 2022 14:58:13 +0200 Subject: [PATCH] lgtm: dirname() is now icky --- .lgtm/cpp-queries/PotentiallyDangerousFunction.ql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.lgtm/cpp-queries/PotentiallyDangerousFunction.ql b/.lgtm/cpp-queries/PotentiallyDangerousFunction.ql index 39e8dddd13..63fd14e75f 100644 --- a/.lgtm/cpp-queries/PotentiallyDangerousFunction.ql +++ b/.lgtm/cpp-queries/PotentiallyDangerousFunction.ql @@ -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." ) }