[PATCH] drm/rockchip: analogix_dp: bound endpoint name formatting
Heiko Stuebner
heiko at sntech.de
Thu Sep 3 07:12:03 PDT 2026
On Tue, 01 Sep 2026 14:55:11 -0500, Yudi Yang wrote:
> rockchip_dp_drm_encoder_enable() uses sprintf() to format a device tree
> path into a 32-byte stack buffer. Device tree paths are not limited to
> this size, so a sufficiently long path can overflow the buffer.
>
> Use snprintf() with the destination size to truncate the generated name
> and keep the writes within bounds.
>
> [...]
Applied, thanks!
[1/1] drm/rockchip: analogix_dp: bound endpoint name formatting
commit: bc69439d983cc491cc86e01fafc1deb94e1bb85e
Best regards,
--
Heiko Stuebner <heiko at sntech.de>
More information about the linux-arm-kernel
mailing list