commit | b83caf42532b25d59cf78c135c6433581b3cd77c | [log] [tgz] |
---|---|---|
author | Takashi Iwai <tiwai@suse.de> | Wed Mar 11 08:34:10 2020 +0100 |
committer | Rob Clark <robdclark@chromium.org> | Thu Mar 19 12:09:04 2020 -0700 |
tree | 36546a4b1ac18de5bbb038b1cb2a01fea87a494b | |
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>