aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-11 08:08:51 +0100
committerRafael J. Wysocki <[email protected]>2020-03-14 11:11:58 +0100
commit949fe25f2ad31f72572dcad491843d355dc93b32 (patch)
treed470bf82984c147f3480577862145fa2a63a080f /tools/perf/util/trace-event-scripting.c
parent2c523b344dfa65a3738e7039832044aa133c75fb (diff)
ACPI: fan: 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(). Also adjust the argument to really match with the actually remaining buffer size. Signed-off-by: Takashi Iwai <[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