]> Git Repo - J-u-boot.git/commit - drivers/net/mdio_sandbox.c
test: dm_mdio: avoid out of bounds access
authorHeinrich Schuchardt <[email protected]>
Tue, 30 Jul 2019 21:49:00 +0000 (23:49 +0200)
committerJoe Hershberger <[email protected]>
Wed, 4 Sep 2019 16:37:19 +0000 (11:37 -0500)
commitfd6d88f55baee946d2a1bd16e7344486cf140c94
tree0a9981ad65b2728f969f47573a82a7a2ca683720
parenta37c082248220a30caacc7804575cae6f885506b
test: dm_mdio: avoid out of bounds access

SANDBOX_PHY_REG_CNT is not an allowable index for the array
u16 reg[SANDBOX_PHY_REG_CNT].

Identified by cppcheck.

Fixes: b47edf8069cc ("test: dm_mdio: add a 2nd register to the emulated PHY")
Signed-off-by: Heinrich Schuchardt <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
drivers/net/mdio_sandbox.c
This page took 0.032119 seconds and 4 git commands to generate.