]> git.ipfire.org Git - thirdparty/man-pages.git/commit
string_copying.7: Fortify source of some functions
authorAlejandro Colomar <alx@kernel.org>
Sun, 3 Dec 2023 20:02:35 +0000 (21:02 +0100)
committerAlejandro Colomar <alx@kernel.org>
Sun, 3 Dec 2023 22:07:44 +0000 (23:07 +0100)
commit4fbb0290f9f5450289c3e678756b4755a58c590e
tree1268ac8fb8aa3cf2ba62d67aae5e00b298c54587
parent11c1741e472c30aa34d59202730588281a1fddfc
string_copying.7: Fortify source of some functions

By setting the terminating null byte via a stpcpy(dst, "") call, the
last byte is also protected by _FORTIFY_SOURCE.

Reported-by: "Serge E. Hallyn" <serge@hallyn.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man7/string_copying.7