]> git.ipfire.org Git - thirdparty/shadow.git/commit
gpasswd: Replace STRFCPY() by STRLCPY()
authorAlejandro Colomar <alx@kernel.org>
Sat, 29 Jul 2023 16:04:30 +0000 (18:04 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit7bfcf1724c4885879a3001710c143385140678d5
tree7b99cecc71d2db39bb2ed90915a6d1a654563665
parentfcc25a03cd448597472c076e6fae0c0face0693e
gpasswd: 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/gpasswd.c