From 0fb0280f132d47185787d5db57d4fe65d41a8a3a Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Wed, 3 May 2023 19:49:08 +0900 Subject: [PATCH] amlogic: hdmitx: Fix stringop-overread warning There is copying size 3 from one space string and it causes stringop-overread warning. Fix to copy from three spaces string. Change-Id: Iee4f9de77ab8f990d7ecc06ea18ebba1e56839ea Signed-off-by: Seung-Woo Kim --- drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c index 12e7e407da1f..bed116afca21 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hdmi_tx_main.c @@ -595,7 +595,7 @@ static int set_disp_mode_auto(void) if (strstr(hdmitx_device.fmt_attr,"now") != NULL) { - memcpy(strstr(hdmitx_device.fmt_attr,"now"), " ", 3); + memcpy(strstr(hdmitx_device.fmt_attr,"now"), " ", 3); } hdev->cur_VIC = HDMI_Unknown; /* if vic is HDMI_Unknown, hdmitx_set_display will disable HDMI */ -- 2.34.1