]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/json.c
json: always allocate at least sizeof(JsonVariant) bytes
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Jul 2019 09:15:06 +0000 (11:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 11 Jul 2019 13:10:33 +0000 (15:10 +0200)
commit2eb1c19881678851a7e514a9d024fac248b309d1
treea7a4ecde504e3a1117be03adb51c33609ecd8475
parent66d3159739c75baa17fe83ccc1bc1838c4edf4fa
json: always allocate at least sizeof(JsonVariant) bytes

ubsan apparently doesn't like us being too smart here. Given the
difference is just a few bytes, let's avoid the noise.

Fixes: #13020
src/shared/json.c