[9610] wlbt: fix prevent issue CID:240470,240473,240480
authorYoungsoo Kim <youngss.kim@samsung.com>
Wed, 29 Aug 2018 14:03:42 +0000 (23:03 +0900)
committerhskang <hs1218.kang@samsung.com>
Wed, 29 Aug 2018 07:36:34 +0000 (16:36 +0900)
commite7c893caf6ac71e4f2c012f570f6df00153dec41
tree770b47fa85ccaab1689da0c4778f00d2a33c2c1c
parent94550f1e55bddc55099e9e1cd37b1d7a9eff9aec
[9610] wlbt: fix prevent issue CID:240470,240473,240480

drivers/net/wireless/scsc/hip4_smapper.c

CID 240470 (#1 of 1): Out-of-bounds write (OVERRUN)
6. overrun-local: Overrunning array control->lookuptable of 10 bytes at byte offset 251 using index bank->bank (which evaluates to 251).

CID 240473 (#1 of 1): Out-of-bounds read (OVERRUN)
4. overrun-local: Overrunning array control->lookuptable of 10 bytes at byte offset 10 using index bank_num (which evaluates to 10).

drivers/misc/samsung/scsc/mxlogger.h

CID 240480 (#1 of 1): Uninitialized scalar variable (UNINIT)
2. uninit_use_in_call: Using uninitialized value sync_r. Field sync_r.fw_time is uninitialized when calling memcpy. [Note: The source code implementation of the function has been overridden by a builtin model.]

Change-Id: I5fd7e08d84d0d2e21c9416229f827043d55a2e79
drivers/misc/samsung/scsc/mxlogger.c
drivers/net/wireless/scsc/hip4_smapper.c