diff options
| author | Danielle Ratson <danieller@nvidia.com> | 2021-05-17 20:03:57 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2021-05-17 15:15:46 -0700 |
| commit | 837ec05cfea08284c575e8e834777b107da5ff9d (patch) | |
| tree | dd4cf1ed79684b1aa8a76f43e9dcca92a56dc08e /lib/test_stackinit.c | |
| parent | ece5df874d3a80fcade92ca3b3877bd78dbb6116 (diff) | |
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 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions
