summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorQun Zhang <qunz@codeaurora.org>2018-06-13 14:11:55 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-06-19 02:49:36 -0700
commitbf6a8da3af24a1156de797abc461544881cb5529 (patch)
tree28c97d649a7b10ea57bc1ff8c8dd4b80f28d5152 /tools/perf/scripts/python
parente4f8e359f67ff3428097e2e5d3918c2bbae9321b (diff)
qcacld-2.0: Add check for min buffer length in find_ie_defn
propagation from qcacld-3.0 to qcacld-2.0 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: 2259637
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions