summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2016-06-30 07:08:53 -0300
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-24 20:10:26 -0700
commitf71e3abc160b2888cb1b1b4b2647d981f2aa9420 (patch)
treebf7238bc0da2b50f144961180ca6f11fa01ef31a /tools/perf/scripts/python
parentd6ffac796efda61c0c97afb034cfd2278896ffb7 (diff)
[media] cec-adap: prevent write to out-of-bounds array index
CEC_MSG_REPORT_PHYSICAL_ADDR can theoretically be received from an unregistered device, but in that case the code should not attempt to write the received physical address to the phys_addrs array. That would be pointless since there can be multiple unregistered devices that report a physical address. We just ignore those. While at it, improve the dprintk since it would attempt to read from that array as well with the same out-of-bounds problem. Change-Id: Ic4e969669cadd3e9f59a587d7d075e130f5cd869 Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Git-commit: f8db65fe4336baf818dde5d226eb3d35773e2371 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git Signed-off-by: Ray Zhang <rayz@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions