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

Joe Hershberger joe.hershberger at ni.com
Tue Jul 30 22:21:04 UTC 2019


On Tue, Jul 30, 2019 at 4:49 PM Heinrich Schuchardt <xypron.glpk at gmx.de> 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 Schuchardt <xypron.glpk at gmx.de>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list