On Tue, Oct 9, 2018 at 6:24 AM Colin King wrote:
>
> From: Colin Ian King
>
> Currently the range check on the port index is off-by-one and a potential
> out of bounds write can occur on priv->ports[i]. Fix this by checking the
> maximum port using >= INNO_PHY_PORT_NUM rather than > INNO_PHY_PORT
From: Colin Ian King
Currently the range check on the port index is off-by-one and a potential
out of bounds write can occur on priv->ports[i]. Fix this by checking the
maximum port using >= INNO_PHY_PORT_NUM rather than > INNO_PHY_PORT_NUM.
Detected by CoverityScan, CID#1466118 ("Out-of-bounds
2 matches
Mail list logo