]> git.ipfire.org Git - thirdparty/strongswan.git/commit
leak-detective: Add implementation of malloc_usable_size()
authorTobias Brunner <tobias@strongswan.org>
Mon, 8 Jan 2024 15:05:20 +0000 (16:05 +0100)
committerTobias Brunner <tobias@strongswan.org>
Tue, 16 Jan 2024 09:59:59 +0000 (10:59 +0100)
commit22fc539edd2ddaa9521c6e370d5cc423c32352f5
tree8c6698b5a1c60fa034da5576a132ea8ee20fddef
parentf3578d3de839815ed0dad17b0a3c3317365bd1fe
leak-detective: Add implementation of malloc_usable_size()

systemd seems to use this and if we indirectly use libraries provided
by it, which can e.g. happen via getgrnam_r() and nss-systemd, this may
be called on pointers returned by leak detective's malloc(), which will
not point to the original start of the block and cause a segmentation
fault.

Closes strongswan/strongswan#2045
src/libstrongswan/utils/leak_detective.c