]> git.ipfire.org Git - thirdparty/shadow.git/commit
Drop alloca(3)
authorChristian Göttsche <cgzones@googlemail.com>
Tue, 28 Feb 2023 14:50:20 +0000 (15:50 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 8 Jun 2023 14:05:39 +0000 (09:05 -0500)
commit065a752b426266462dc0e7d9ad5a9fe79e6be16a
tree3fef4fe75666f8625a9dc51862cac35d14df2c27
parent7a2b302e68a4f3e324b851c7361e40aa20a86a64
Drop alloca(3)

alloca(3) fails silently if not enough memory can be allocated on the
stack.  Use checked dynamic allocation instead.

Also drop unnecessary manual NUL assignment, ensured by snprintf(3).

Co-developed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/alloc.h
libmisc/getdate.y
src/useradd.c
src/usermod.c