aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2018-03-29 00:06:10 +0200
committerKalle Valo <[email protected]>2018-04-10 17:27:52 +0300
commit6707ba0105a2d350710bc0a537a98f49eb4b895d (patch)
treefeec6f72ea84977c1e707a5f2bd170fc2a215e96 /tools/perf/scripts/python/mem-phys-addr.py
parenta72c92629108bb8ad756f31b74791c51e1de2af4 (diff)
ath10k: avoid possible string overflow
The way that 'strncat' is used here raised a warning in gcc-8: drivers/net/wireless/ath/ath10k/wmi.c: In function 'ath10k_wmi_tpc_stats_final_disp_tables': drivers/net/wireless/ath/ath10k/wmi.c:4649:4: error: 'strncat' output truncated before terminating nul copying as many bytes from a string as its length [-Werror=stringop-truncation] Effectively, this is simply a strcat() but the use of strncat() suggests some form of overflow check. Regardless of whether this might actually overflow, using strlcat() instead of strncat() avoids the warning and makes the code more robust. Fixes: bc64d05220f3 ("ath10k: debugfs support to get final TPC stats for 10.4 variants") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions