diff options
| author | lifeng <lifeng@codeaurora.org> | 2019-03-20 18:05:26 +0800 |
|---|---|---|
| committer | Kelly Rossmoyer <krossmo@google.com> | 2019-04-11 23:19:02 +0000 |
| commit | a1b88db1e50e0588737c41acd6a52468954d24b9 (patch) | |
| tree | 45f840047d2ea2e094c0f1c454ae80c36cea877c /net/lapb/lapb_out.c | |
| parent | 7b388db6d8029db8f1f1e6c6613203fc5e08d43e (diff) | |
qcacld-2.0: Fix possible buffer overflow in sirConvertAddtsRsp2Struct
propagation from qcacld-3.0 to qcacld-2.0
In the function sirConvertAddtsRsp2Struct, iterator j is
assigned with the value pAddTs->numTclas + addts.num_WMMTCLAS.
The j value is used as the index to the array pAddTs->tclasInfo.
Maximum limit on pAddTs->tclasInfo entries is 2. So when the
value of j exceeds 2, then a possible buffer overflow could
occur.
Validate the value of j against SIR_MAC_TCLASIE_MAXNUM(2).
Change-Id: Icc723380ed4ccd51c729194d509e288be0e0712c
CRs-Fixed: 2419829
Bug: 128798879
Bug: 123533258
Signed-off-by: Srinivas Girigowda <quic_sgirigow@quicinc.com>
Diffstat (limited to 'net/lapb/lapb_out.c')
0 files changed, 0 insertions, 0 deletions
