diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-20 11:08:27 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-20 11:08:27 +0200 |
commit | 040f18ea8a682dc80c9f3940cf234ccd1135e115 (patch) | |
tree | b5d831d28dda6d16e951c4b08dafbbbf0b7915eb /src/shared/util.h | |
parent | 4b8772bf5f2887aa2bdb74efa2f5dfd40fff946d (diff) |
util: overflow hardening
Diffstat (limited to 'src/shared/util.h')
-rw-r--r-- | src/shared/util.h | 2 |
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; |