david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[w89c840] Avoid potential array overrun

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2017-03-22 15:59:27 +02:00
parent ad725fa7d9
commit 99e1207a4d
1 changed files with 1 additions and 1 deletions

View File

@ -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 */