diff options
author | Takashi Iwai <[email protected]> | 2020-03-11 08:13:41 +0100 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2020-03-14 12:07:38 +0100 |
commit | 3c0897c180c6605ebbdfa1b4badc71e181fc4cdc (patch) | |
tree | 80430012918fa2ac2f0c83ff6b86687ea598d2bf /tools/perf/util/trace-event-scripting.c | |
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 <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions