]> git.ipfire.org Git - thirdparty/shadow.git/commit
login: Replace STRFCPY() by STRLCPY()
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Jul 2023 15:56:46 +0000 (17:56 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commitfcc25a03cd448597472c076e6fae0c0face0693e
treed2abd9657491bd7ef7e7ea22e48dcfa88d87ab4b
parent6dacb154e51c3f79d42652003ce5b6e160ef4195
login: Replace STRFCPY() by STRLCPY()

The variable is only being read as a string (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/login.c