diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2020-08-23 13:34:58 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-24 00:45:03 +0200 |
commit | 46b04a79e5c3c6be649b0d1a791fa9e91a0cbb50 (patch) | |
tree | 4f568326a8be9035343e6d32051abc5ed9e986b4 /Userland/stat.cpp | |
parent | e682967d7eb4bff978b011b03a6bf4b939745d1c (diff) | |
download | serenity-46b04a79e5c3c6be649b0d1a791fa9e91a0cbb50.zip |
DHCPClient: Prefer strlcpy over strncpy, fixes off-by-one
A malicious caller of set_params could have caused the ifr_name field to
lack NUL-termination. I don't think this was an actual problem, though, as
the Kernel always forces NUL-termination by overwriting ifr_name's last byte
with NUL.
However, it feels better to do it properly.
No behaviour change (probably).
Diffstat (limited to 'Userland/stat.cpp')
0 files changed, 0 insertions, 0 deletions