diff options
author | 2018-06-30 14:33:41 +0800 | |
---|---|---|
committer | 2018-07-04 18:15:06 +0300 | |
commit | f9cbaeb52930342059429f56d0b9f05c8d54c0ba (patch) | |
tree | 28963ff600a1af119033feb95b510e7112145f5b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | wlcore: Fix memory leak in wlcore_cmd_wait_for_event_or_timeout (diff) | |
download | wireguard-linux-f9cbaeb52930342059429f56d0b9f05c8d54c0ba.tar.xz wireguard-linux-f9cbaeb52930342059429f56d0b9f05c8d54c0ba.zip |
atmel: using strlcpy() to avoid possible buffer overflows
'firmware' is a module param which may been longer than firmware_id,
so using strlcpy() to guard against overflows. Also priv is allocated
with zeroed memory,no need to set firmware_id[0] to '\0'.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions