aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-11 10:29:30 +0100
committerGreg Kroah-Hartman <[email protected]>2020-03-18 12:59:29 +0100
commite39c0ffe8cc3cce212928168236bfd0c22965235 (patch)
tree36e0cecb0e86de0a5d51f04cfe0ca70101cd4d4d /tools/perf/scripts/python/export-to-sqlite.py
parente2c2e7987106efbb576d7a46fbc9298fafd0b844 (diff)
tty: serial: pch_uart: 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]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions