diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 09:47:07 +0100 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2020-03-12 10:21:14 +0200 |
commit | bc8f237823bca96a879d17a96a4c2b1a10c38b6d (patch) | |
tree | b4a03c7682ae2db2ab45af99daf9dace28c00821 /lib/test_meminit.c | |
parent | 5637c4ca961bc72ae3cce4bd5cbcecb5b8e32a54 (diff) |
ath11k: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the
actual output size, the succeeding calls may go beyond the given
buffer limit. Fix it by replacing with scnprintf().
Cc: ath11k@lists.infradead.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'lib/test_meminit.c')
0 files changed, 0 insertions, 0 deletions