diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 08:49:16 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-03-18 12:24:19 +0100 |
commit | d108b132ea39cdcd63a1d6b4460fc4c7d183c7e5 (patch) | |
tree | 1183967275197a2294b2cb366457aa32ca392587 /drivers/misc/sgi-gru/grulib.h | |
parent | firmware: stratix10-svc: add the compatible value for intel agilex (diff) | |
download | linux-d108b132ea39cdcd63a1d6b4460fc4c7d183c7e5.tar.xz linux-d108b132ea39cdcd63a1d6b4460fc4c7d183c7e5.zip |
misc: mic: 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/20200311074916.8783-1-tiwai@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/sgi-gru/grulib.h')
0 files changed, 0 insertions, 0 deletions