diff options
author | Takashi Iwai <tiwai@suse.de> | 2020-03-11 08:34:10 +0100 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-03-19 12:09:04 -0700 |
commit | b83caf42532b25d59cf78c135c6433581b3cd77c (patch) | |
tree | 36546a4b1ac18de5bbb038b1cb2a01fea87a494b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4c145df18f71782007276b670d060d39393fd393 (diff) |
drm/msm: 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>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions