diff options
| author | Pragaspathi Thilagaraj <tpragasp@codeaurora.org> | 2019-12-10 17:07:31 +0530 |
|---|---|---|
| committer | nshrivas <nshrivas@codeaurora.org> | 2019-12-10 08:03:54 -0800 |
| commit | eceb6d0aeeaf730e11cb2bf08c8054b700bc1cc9 (patch) | |
| tree | 65a1ac02f4a04f88d9859e9c7f37ccb0d5e196c2 /lib/mpi/mpi-bit.c | |
| parent | 7c996700d20df7b3175cbcee7567bb5ad951f8d7 (diff) | |
qcacld-3.0: Fix integer overflow in rrm_fill_beacon_ies()
In rrm_fill_beacon_ies(), the len is the total length of
IE + 2 bytes for element ID (1 byte) and length of the
IE(1 byte). Length is defined of type uint8_t and can have
only values upto 255. When the IE content length is 254,
adding 2 bytes to this will cause the len to overflow
resulting in continuous loop in rrm_fill_beacon_ies.
Change the len type to uint16_t to avoid integer overflow.
Change-Id: Id6a6bcce150f778e24316ccc5fb51c6e2a95fc5e
CRs-Fixed: 2537774
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions
