diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 08:08:51 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-03-14 11:11:58 +0100 |
commit | 949fe25f2ad31f72572dcad491843d355dc93b32 (patch) | |
tree | d470bf82984c147f3480577862145fa2a63a080f /samples/hw_breakpoint | |
parent | 2c523b344dfa65a3738e7039832044aa133c75fb (diff) |
ACPI: fan: 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().
Also adjust the argument to really match with the actually remaining
buffer size.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'samples/hw_breakpoint')
0 files changed, 0 insertions, 0 deletions