]> git.ipfire.org Git - thirdparty/systemd.git/commit
alloc-util: whenever any of our alloca() wrappers is used to allocate overly large...
authorLennart Poettering <lennart@poettering.net>
Sat, 26 Jan 2019 14:42:35 +0000 (15:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 26 Jan 2019 15:17:04 +0000 (16:17 +0100)
commit4aee28c67b48f53b521e5512fc648f4ba2afabfb
tree4f26b049798b4485fdb91a9645fc5a8aff348030
parent7c45deb20d4b28a928e0af089b1b18c2118db1e0
alloc-util: whenever any of our alloca() wrappers is used to allocate overly large memory blocks, hit an assert()

Of course, this should never happen, but let's better be safe than
sorry, and abort rather than continue when a too large memory block is
allocated, simply asa safety precaution.

An early abort is better than continuing with a likely memory corruption
later.
src/basic/alloc-util.h