[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)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:01 +0000 (20:23 +0300)
commit58c12ef19148deba4f0bdbe1f738aa33631e6f08
tree0f89d9ac76e45bb8251c14d856f06997d4626cb0
parent590ab7f3f1b6e3f100b31d99cba1f2e8f604cfb8
[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