linux/drivers/gpu/drm/bridge/synopsys
Azeem Shaikh 37cee4876a
drm/bridge: dw-hdmi: Replace all non-returning strlcpy with strscpy
strlcpy() reads the entire source buffer first.
This read may exceed the destination size limit.
This is both inefficient and can lead to linear read
overflows if a source string is not NUL-terminated [1].
In an effort to remove strlcpy() completely [2], replace
strlcpy() here with strscpy().
No return values were used, so direct replacement is safe.

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html#strlcpy
[2] https://github.com/KSPP/linux/issues/89

Signed-off-by: Azeem Shaikh <azeemshaikh38@gmail.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230522155210.2336690-1-azeemshaikh38@gmail.com
2023-05-23 19:19:31 +02:00
..
dw-hdmi-ahb-audio.c drm/bridge: dw-hdmi-ahb-audio: Convert to platform remove callback returning void 2023-03-20 11:51:54 +01:00
dw-hdmi-audio.h drm/bridge: dw-hdmi: handle ELD when DRM_BRIDGE_ATTACH_NO_CONNECTOR 2021-11-12 10:05:45 +01:00
dw-hdmi-cec.c drm/bridge: dw-hdmi-cec: Convert to platform remove callback returning void 2023-03-20 11:51:54 +01:00
dw-hdmi-cec.h
dw-hdmi-gp-audio.c drm/bridge: dw-hdmi-gp-audio: Convert to platform remove callback returning void 2023-03-20 11:51:54 +01:00
dw-hdmi-i2s-audio.c drm/bridge: dw-hdmi-i2s-audio: Convert to platform remove callback returning void 2023-03-20 11:51:55 +01:00
dw-hdmi.c drm/bridge: dw-hdmi: Replace all non-returning strlcpy with strscpy 2023-05-23 19:19:31 +02:00
dw-hdmi.h drm: bridge: dw_hdmi: Audio: Add General Parallel Audio (GPA) driver 2022-04-19 18:23:48 +02:00
dw-mipi-dsi.c drm: bridge: dw-mipi-dsi: Switch to devm_drm_of_get_bridge 2022-03-31 17:52:48 +02:00
Kconfig drm/display: Move HDMI helpers into display-helper module 2022-04-25 11:19:36 +02:00
Makefile drm: bridge: dw_hdmi: Audio: Add General Parallel Audio (GPA) driver 2022-04-19 18:23:48 +02:00