alloc-util: drop _alloc_(2, 3) decorator from memdup_suffix0_multiply()
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Jul 2019 07:06:28 +0000 (09:06 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 12 Jul 2019 07:11:40 +0000 (09:11 +0200)
commit7d025debfadc82391a5f3e7228c24cef6f199981
tree7d26f46451eb17b41e356f7243ecb94c2fb33552
parent27dd6e1b1204fbea507f50e9aadde1c5b5f0ac18
alloc-util: drop _alloc_(2, 3) decorator from memdup_suffix0_multiply()

This decorator tells compilers that the memory we return is shorter than
it actually is, thus triggering misleading bad memory access complaints.

Fixes: #13026
src/basic/alloc-util.h