aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-div.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-11 10:30:03 +0100
committerGreg Kroah-Hartman <[email protected]>2020-03-12 09:49:28 +0100
commit0de005d0e4270f2dad5289d6dea8db041fba6199 (patch)
tree1c3e5129ea2f453291fedcea1b947a29be3d56dd /lib/mpi/mpi-div.c
parent8e567ed9e244f6af2ecfd22a7204612ec361d334 (diff)
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-div.c')
0 files changed, 0 insertions, 0 deletions