diff options
author | Takashi Iwai <[email protected]> | 2020-03-11 08:34:10 +0100 |
---|---|---|
committer | Rob Clark <[email protected]> | 2020-03-19 12:09:04 -0700 |
commit | b83caf42532b25d59cf78c135c6433581b3cd77c (patch) | |
tree | 36546a4b1ac18de5bbb038b1cb2a01fea87a494b /scripts/bpf_helpers_doc.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 <[email protected]>
Reviewed-by: Jordan Crouse <[email protected]>
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions