Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[w89c840] Avoid potential array overrun
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Mar 22, 2017
1 parent ad725fa commit 99e1207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/net/w89c840.c
Expand Up @@ -247,7 +247,7 @@ static struct winbond_private
/* MII transceiver section. */
int mii_cnt; /* MII device addresses. */
u16 advertising; /* NWay media advertisement */
unsigned char phys[2]; /* MII device addresses. */
unsigned char phys[4]; /* MII device addresses. */
} w840private __attribute__ ((aligned (PRIV_ALIGN_BYTES)));

/* NIC specific static variables go here */
Expand Down

0 comments on commit 99e1207

Please sign in to comment.