[PATCH] drm/msm: fix -Wformat-security warnings
Dmitry Baryshkov
dmitry.baryshkov at linaro.org
Tue Dec 24 20:40:58 UTC 2024
On Mon, 16 Dec 2024 09:33:13 +0100, Arnd Bergmann wrote:
> Passing a variable string as a printf style format is potentially
> dangerous that -Wformat-security can warn about if enabled. A new
> instance just got added:
>
> drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c: In function 'dpu_kms_mdp_snapshot':
> drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:1046:49: error: format not a string literal and no format arguments [-Werror=format-security]
> 1046 | vbif->name);
> | ~~~~^~~~~~
>
> [...]
Applied, thanks!
[1/1] drm/msm: fix -Wformat-security warnings
https://gitlab.freedesktop.org/lumag/msm/-/commit/49c2e01be19c
Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov at linaro.org>
More information about the dri-devel
mailing list