commit | 3c0897c180c6605ebbdfa1b4badc71e181fc4cdc | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 08:13:41 2020 +0100 |
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | Sat Mar 14 12:07:38 2020 +0100 |
tree | 80430012918fa2ac2f0c83ff6b86687ea598d2bf | |
parent | c1f59a3782ee00a92849cb64e15fa6480620f281 [diff] |
cpufreq: 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> Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>