]> git.ipfire.org Git - thirdparty/shadow.git/commit
chage: Replace STRFCPY() by STRLCPY()
authorAlejandro Colomar <alx@kernel.org>
Thu, 8 Jun 2023 18:33:13 +0000 (20:33 +0200)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 1 Sep 2023 07:39:23 +0000 (09:39 +0200)
commit5579b40e357a69df434b7549680d2e13ffab16e0
tree6c1019898e02d77a020679cfda2e503bdedeb9f0
parent33abc8bcd96fcc77684ba31e7eaf3d6cac09c293
chage: 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/chage.c