diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 10:47:06 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-03-20 18:27:42 +0300 |
commit | 4345e2e5c75895232a17e6783e6233beadc650c4 (patch) | |
tree | 195cdb7ccccb597417d5aa447bb3e2fbe3575d4e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 4b508ed16acac15f4a762d5e10ed8d64a7ac3fb1 (diff) | |
download | linux-4345e2e5c75895232a17e6783e6233beadc650c4.tar.xz |
media: rc: 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>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions