aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-15 10:35:02 +0100
committerDavid S. Miller <[email protected]>2020-03-15 17:06:22 -0700
commit5e892880e14fbc1944f49aa42a67496516fe5dac (patch)
tree2ce9e7d22d7eadde22060ef8a03beaa8bffbe049 /tools/perf/scripts/python/exported-sql-viewer.py
parent38e0f746c456b2f7d64b37aef3b6bd9ad73508c0 (diff)
net: sfc: 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(). Cc: "David S . Miller" <[email protected]> Cc: Edward Cree <[email protected]> Cc: Martin Habets <[email protected]> Cc: Solarflare linux maintainers <[email protected]> Cc: [email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions