]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/bootspec.c
bootspec: avoid zero size VLA 22487/head
authorLennart Poettering <lennart@poettering.net>
Fri, 11 Feb 2022 21:36:00 +0000 (22:36 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 14 Feb 2022 15:24:04 +0000 (16:24 +0100)
commitd5ac1d4e10e6bec3ab63cd95fb3b729e3e5d1d96
treeb1b58cbadae7691e9f29ae52d733e655b04d572c
parentf63b5ad93592ff64b5e8a83b63f2a3daade28114
bootspec: avoid zero size VLA

apparently some checkers don't like that. Let's be entirely safe here,
and use malloc() based allocation, given that the entries are user
controlled.
src/shared/bootspec.c