]> git.ipfire.org Git - thirdparty/shadow.git/commit
passwd: Replace STRFCPY() by STRLCPY()
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Jul 2023 16:11:02 +0000 (18:11 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit3029883888266d7121bb267c6cf4ad79b6f2c144
tree3ce3b01c1b1caafcead0a55b0975ac6bfa8ee27d
parent7bfcf1724c4885879a3001710c143385140678d5
passwd: Replace STRFCPY() by STRLCPY()

The variables are only being read as strings (char *), so data after the
'\0' can't be leaked.

Cc: Christian Göttsche <cgzones@googlemail.com>
Cc: Serge Hallyn <serge@hallyn.com>
Cc: Iker Pedrosa <ipedrosa@redhat.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
src/passwd.c