summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorVignesh Viswanathan <viswanat@codeaurora.org>2018-05-10 17:10:40 +0530
committernshrivas <nshrivas@codeaurora.org>2018-05-11 16:14:18 -0700
commit8cd5bec885723771b2a62509ea2709682199ee46 (patch)
treeceff39a63652559e83c63c4308130a81c5784a94 /tools/perf/scripts/python
parenta3dbbfbbfacb7594e6bb092eee9b3600f0b39183 (diff)
qcacld-3.0: Add check for min buffer length in find_ie_defn
In find_ie_defn function, if the current IE is an Ext IE with EID=255, the third byte of the IE is accessed to get the extn_eid. However, if the actual buffer length is less than 3, then an OOB read would occur while trying to access extn_eid. Add check to access pbuf + 2 for extn_eid only if nbuf is greater than 2. Change-Id: Id9708176affe35a85eb21a07901ae8ed62b78b9e CRs-Fixed: 2237141
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions