diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-10-03 13:29:20 -0400 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-10-03 13:29:20 -0400 |
commit | 0b507b17a760b21e33fc52ff377db6aa5086c680 (patch) | |
tree | 472861f8e6dd3b70752b26feded8e0246e1103d9 /src/shared/util.h | |
parent | 07c289875fd46331a430c43e8991d3c7407cb703 (diff) |
dbus: add some more safety checks before accepting data from bus clients
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index 61b88a8b2e..cbded08617 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -558,3 +558,6 @@ _malloc_ static inline void *memdup_multiply(const void *p, size_t a, size_t b) return memdup(p, a * b); } + +bool filename_is_safe(const char *p); +bool string_is_safe(const char *p); |