[9610] wlbt: fix prevent issue CID:240470,240473,240480
authorAlbert Cano <a.canocamps@samsung.com>
Wed, 29 Aug 2018 08:04:27 +0000 (09:04 +0100)
committerDongsik Son <dongsik.son@samsung.com>
Thu, 18 Oct 2018 01:31:00 +0000 (10:31 +0900)
commitf9b2a2b77179ff2c220ee769dc8abb998afc4ef5
tree55b72dfec7aff5a7692d63afc0c60e42b212b62d
parent296f64ff1a40a951e29afa45918971189f7b2563
[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

Change-Id: Id6d1a434518e401d1bf28cd8833514c82ac3652f
Signed-off-by: Albert Cano <a.canocamps@samsung.com>
Signed-off-by: Youngsoo Kim <youngss.kim@samsung.com>
SCSC-Bug-Id: CBR-6
drivers/net/wireless/scsc/hip4_smapper.c
drivers/net/wireless/scsc/hip4_smapper.h