summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2019-12-23 17:29:02 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2019-12-27 10:57:21 +0900
commitab5adee5ce134b69891d466e3219506ffa686dc7 (patch)
treec399116941bdf23e1270ff6b680553ec9def7e1c
parent5e180acfa78e4810a8db697b1cf39a8e3d08192c (diff)
downloadlinux-4.9-exynos9110-ab5adee5ce134b69891d466e3219506ffa686dc7.tar.gz
linux-4.9-exynos9110-ab5adee5ce134b69891d466e3219506ffa686dc7.tar.bz2
linux-4.9-exynos9110-ab5adee5ce134b69891d466e3219506ffa686dc7.zip
video: fbdev: exynos: dpu9110: panel: s6e36w3x01: remove buffer overflow
The memcpy to buffer has out of bounds for array. Remove the buffer overflow for by adding additional array length. Change-Id: I0aa5974fd39a6a7f705740ce1dcbf6ce15c2e935 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rwxr-xr-xdrivers/video/fbdev/exynos/dpu_9110/panels/s6e36w3x01_l_mipi_lcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/exynos/dpu_9110/panels/s6e36w3x01_l_mipi_lcd.c b/drivers/video/fbdev/exynos/dpu_9110/panels/s6e36w3x01_l_mipi_lcd.c
index d458cee3a788..8b1824cd5609 100755
--- a/drivers/video/fbdev/exynos/dpu_9110/panels/s6e36w3x01_l_mipi_lcd.c
+++ b/drivers/video/fbdev/exynos/dpu_9110/panels/s6e36w3x01_l_mipi_lcd.c
@@ -1705,7 +1705,7 @@ error:
static int s6e36w3x01_read_init_info(struct dsim_device *dsim, unsigned char *mtp, unsigned char *hbm)
{
struct panel_private *panel = &dsim->priv;
- unsigned char buf[S6E36W3_MTP_DATE_SIZE] = { 0, };
+ unsigned char buf[S6E36W3_MTP_DATE_SIZE + 1] = { 0, };
unsigned char bufForCoordi[S6E36W3_COORDINATE_LEN] = { 0, };
unsigned char bufForProductDate[S6E36W3_PRODUCT_DATE_LEN] = {0, };
int i = 0;