summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-20 11:08:27 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-20 11:08:27 +0200
commit040f18ea8a682dc80c9f3940cf234ccd1135e115 (patch)
treeb5d831d28dda6d16e951c4b08dafbbbf0b7915eb /src/shared/util.h
parent4b8772bf5f2887aa2bdb74efa2f5dfd40fff946d (diff)
util: overflow hardening
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index e23d706ebd..2e49cfde2e 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -551,7 +551,7 @@ _malloc_ static inline void *malloc_multiply(size_t a, size_t b) {
return malloc(a * b);
}
-static inline void *memdup_multiply(const void *p, size_t a, size_t b) {
+_malloc_ static inline void *memdup_multiply(const void *p, size_t a, size_t b) {
if (_unlikely_(a > ((size_t) -1) / b))
return NULL;