diff options
author | Takashi Iwai <[email protected]> | 2020-03-11 08:17:28 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2020-03-17 19:26:09 +0100 |
commit | 215a423cc0799b054bdabbc5ba68a7178924621d (patch) | |
tree | 63e0a31af0f2d2651fe745b2b51c83a54931fdc6 /tools/perf/util/trace-event-scripting.c | |
parent | 52cff04a81e9571735976e4d70984e89a7ee3885 (diff) |
EDAC/armada_xp: 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: Borislav Petkov <[email protected]>
Reviewed-by: Jan Luebbe <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions