]> git.ipfire.org Git - thirdparty/shadow.git/commit
usermod: fix off-by-one issues
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 2 Mar 2023 15:18:45 +0000 (16:18 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 8 Jun 2023 14:05:39 +0000 (09:05 -0500)
commit7a2b302e68a4f3e324b851c7361e40aa20a86a64
tree62e21b594283c459e39bdfae06b2499ce5ea0257
parent170d24a251c11dadee35f14fd2c2348fa06279b0
usermod: fix off-by-one issues

Allocate enough memory for the strings, two slashes and the NUL
terminator.

Reported-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/usermod.c