diff options
author | Takashi Iwai <[email protected]> | 2020-03-11 08:35:40 +0100 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2020-03-11 14:54:09 +0100 |
commit | 9b9f2219b2c4fa3d1a41245cdc263d09a4c9ad92 (patch) | |
tree | f118a25f1b5dc0848ac7e4e506c0c47fe7d5654e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 41252c6d1c3bc640c3283a797400719fbe7dcec1 (diff) |
drm: sysfs: 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]>
Reviewed-by: Thomas Zimmermann <[email protected]>
Signed-off-by: Thomas Zimmermann <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions