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>
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;