commit | 949fe25f2ad31f72572dcad491843d355dc93b32 | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 08:08:51 2020 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sat Mar 14 11:11:58 2020 +0100 |
tree | d470bf82984c147f3480577862145fa2a63a080f | |
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>