summaryrefslogtreecommitdiff
path: root/scripts/mod/mk_elfconfig.c
diff options
context:
space:
mode:
authorDanielle Ratson <danieller@nvidia.com>2021-05-17 20:03:57 +0300
committerDavid S. Miller <davem@davemloft.net>2021-05-18 01:15:46 +0300
commit837ec05cfea08284c575e8e834777b107da5ff9d (patch)
treedd4cf1ed79684b1aa8a76f43e9dcca92a56dc08e /scripts/mod/mk_elfconfig.c
parentece5df874d3a80fcade92ca3b3877bd78dbb6116 (diff)
downloadlinux-837ec05cfea08284c575e8e834777b107da5ff9d.tar.xz
mlxsw: Verify the accessed index doesn't exceed the array length
There are few cases in which an array index queried from a fw register, is accessed without any validation that it doesn't exceed the array length. Add a proper length validation, so accessing memory past the end of an array will be forbidden. Signed-off-by: Danielle Ratson <danieller@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/mod/mk_elfconfig.c')
0 files changed, 0 insertions, 0 deletions