Re: [U-Boot] [PATCH v2 1/1] test: dm_mdio: avoid out of bounds access

2019-07-30 Thread Joe Hershberger
On Tue, Jul 30, 2019 at 4:49 PM Heinrich Schuchardt wrote: > > 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

[U-Boot] [PATCH v2 1/1] test: dm_mdio: avoid out of bounds access

2019-07-30 Thread Heinrich Schuchardt
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 --- v2 the same error occurs twice ---