diff options
author | Takashi Iwai <[email protected]> | 2020-03-11 08:39:44 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2020-03-11 08:09:31 -0700 |
commit | 6a096871b2bedd524ce706aa687de4f7145f535c (patch) | |
tree | fcaa27f85d98e8a628c00abc9c247d6de5b20df5 /tools/perf/util/trace-event-scripting.c | |
parent | 86da28eed4fbc64dfdc386337f6cbac36c9c1ed2 (diff) |
hwmon: (ibmpowernv) 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]>
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions