mirror of
https://github.com/systemd/systemd
synced 2025-10-06 00:13:24 +02:00
codeql: taint basename()
This commit is contained in:
committed by
Yu Watanabe
parent
0f64d570cb
commit
52c9a3c392
@@ -49,6 +49,9 @@ predicate potentiallyDangerousFunction(Function f, string message) {
|
||||
) or (
|
||||
f.getQualifiedName() = "dirname" and
|
||||
message = "Call dirname() is icky. Use path_extract_directory() instead."
|
||||
) or (
|
||||
f.getQualifiedName() = "basename" and
|
||||
message = "Call basename() is icky. Use path_extract_filename() instead."
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user