diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 10:30:03 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-12 09:49:28 +0100 |
commit | 0de005d0e4270f2dad5289d6dea8db041fba6199 (patch) | |
tree | 1c3e5129ea2f453291fedcea1b947a29be3d56dd /.cocciconfig | |
parent | Merge 5.6-rc5 into usb-next (diff) | |
download | linux-0de005d0e4270f2dad5289d6dea8db041fba6199.tar.xz linux-0de005d0e4270f2dad5289d6dea8db041fba6199.zip |
USB: mon: 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().
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/20200311093003.24604-1-tiwai@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions