commit | edd66086449cdc2763d14afc65cd2023bf37306a | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 08:09:58 2020 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sat Mar 14 11:15:10 2020 +0100 |
tree | 6d1060a8d1d244f8d6494a705b539045a0471fe0 | |
parent | 2c523b344dfa65a3738e7039832044aa133c75fb [diff] |
ACPI: PCI: 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: Rafael J. Wysocki <rafael.j.wysocki@intel.com>