summaryrefslogtreecommitdiff
path: root/lib/flex_array.c
diff options
context:
space:
mode:
authorPragaspathi Thilagaraj <tpragasp@codeaurora.org>2019-12-05 19:55:28 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2021-01-06 03:30:44 -0800
commitd82d4b1fc7fabc2e720f29d461cdba8f1def4223 (patch)
tree5b66e5db4a2795e2d5108518e6ac9ef3d3b27080 /lib/flex_array.c
parent511f7a3487e32c2ca0195849f181ca65fa1a6028 (diff)
qcacld-3.0: Fix integer overflow in rrm_fill_beacon_ies()
In function rrm_fill_beacon_ies, the total IE length is calculated as sum of length field of the IE and 2 (element id 1 byte and IE length field 1 byte). The total IE length is defined of type uint16_t and will overflow if the *(pBcnIes + 1)=0xfe. Validate the len against total IE length to avoid overflow. Change-Id: If8f86952ce43c5923906fc6ef18705f1785c5d88 CRs-Fixed: 2573329
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions