Vignesh Viswanathan
7d3e1ba99c
wlan: Fix buffer overrun in function ProcSetReqInternal
...
In function ProcSetReqInternal, valueLen is obtained from the
message buffer pParam. This valueLen is used as argument to the
function GetStrValue where the contents of the buffer pParam is
copied to pMac->cfg.gSBuffer for valueLen number of bytes. However
the array pMac->cfg.gSBuffer is a static array of size CFG_MAX_STR_LEN.
If the value of valueLen exceeds CFG_MAX_STR_LEN, a buffer overwrite
will occur in GetStrValue.
Add Sanity check to make sure valueLen does not exceed CFG_MAX_STR_LEN.
Change-Id: Id16d4c4b8d2414c00a0fae8f8292f011d0763b84
CRs-Fixed: 2158080
2020-05-21 10:54:41 +02:00
..
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
2019-08-08 12:19:52 +02:00
2019-08-06 12:33:17 +02:00
2019-08-05 14:20:47 +02:00
2015-09-10 10:50:52 +05:30
2020-05-20 09:44:22 +02:00
2019-08-05 14:21:57 +02:00
2019-08-06 12:26:35 +02:00
2020-05-20 09:43:53 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:21:53 +02:00
2019-08-05 14:20:47 +02:00
2019-08-08 15:00:19 +02:00
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
2019-08-06 12:31:22 +02:00
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
2019-08-06 11:41:21 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 09:13:25 +02:00
2019-08-09 10:00:22 +02:00
2019-08-05 09:13:27 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-23 13:20:00 +02:00
2020-05-20 09:44:43 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-03-07 14:01:44 +01:00
2019-08-06 08:17:38 +02:00
2019-08-05 14:20:47 +02:00
2019-08-06 10:44:59 +02:00
2020-05-20 09:44:33 +02:00
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
2020-05-20 09:44:18 +02:00
2020-05-02 17:56:57 +05:30
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-05-20 09:45:31 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-05-20 15:00:46 +02:00
2019-08-23 13:20:00 +02:00
2020-03-07 14:01:44 +01:00
2019-08-06 10:44:59 +02:00
2020-05-20 09:44:21 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-06 10:44:59 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-03-07 14:01:45 +01:00
2019-08-05 14:20:47 +02:00
2020-05-02 17:56:57 +05:30
2019-08-05 14:20:47 +02:00
2019-08-02 15:14:10 +02:00
2019-08-05 14:20:47 +02:00
2019-08-23 13:20:00 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2019-08-06 12:31:33 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-03-07 14:01:44 +01:00
2019-08-08 15:25:13 +02:00
2019-08-08 10:42:14 +02:00
2019-08-06 11:48:23 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 11:18:51 +02:00
2019-08-05 14:20:47 +02:00
2020-05-21 10:54:41 +02:00
2019-08-06 12:26:35 +02:00
2019-08-06 12:31:35 +02:00
2019-08-06 12:24:29 +02:00
2020-05-20 15:02:09 +02:00
2019-08-05 14:20:47 +02:00
2019-08-05 14:20:47 +02:00
2020-05-20 15:01:51 +02:00
2019-08-05 14:20:47 +02:00
2019-08-06 11:41:21 +02:00
2019-08-05 14:20:47 +02:00
2019-08-06 10:44:59 +02:00
2019-08-08 12:10:20 +02:00
2020-03-07 14:01:44 +01:00