diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 12:07:39 +0300 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-03-20 15:44:47 +0300 |
commit | b40e288bfb530e4e12c22c3f8e8ba19e419013da (patch) | |
tree | 020b19c86866c690fe800fd281bb981951bac362 /tools/power/x86/intel-speed-select | |
parent | 1d6f8c5bac93cceb2d4ac8e6331050652004d802 (diff) | |
download | linux-b40e288bfb530e4e12c22c3f8e8ba19e419013da.tar.xz |
platform/x86: sony-laptop: 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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'tools/power/x86/intel-speed-select')
0 files changed, 0 insertions, 0 deletions