diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 08:37:19 +0100 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2020-03-11 11:58:58 +0100 |
commit | 42f502dfe132edb8d7a47e6c0641ed82d718ad0b (patch) | |
tree | a6cde51f41f83ff951b7e0a4b616a97452c7305b /drivers/hid/hid-sensor-custom.c | |
parent | 4eb1b01de5b9d8596d6c103efcf1a15cfc1bedf7 (diff) | |
download | linux-42f502dfe132edb8d7a47e6c0641ed82d718ad0b.tar.gz linux-42f502dfe132edb8d7a47e6c0641ed82d718ad0b.tar.bz2 linux-42f502dfe132edb8d7a47e6c0641ed82d718ad0b.zip |
HID: hid-picolcd_fb: 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>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-sensor-custom.c')
0 files changed, 0 insertions, 0 deletions