summaryrefslogtreecommitdiffstats
path: root/src/drivers/net
diff options
context:
space:
mode:
authorMichael Brown2017-03-22 14:59:27 +0100
committerMichael Brown2017-03-22 14:59:27 +0100
commit99e1207a4d20da21b0953c7953122d2b59ba375a (patch)
tree82183cf73820291f8c19a47e02e64ee7bff8c002 /src/drivers/net
parent[tlan] Guard against failure to identify chip (diff)
downloadipxe-99e1207a4d20da21b0953c7953122d2b59ba375a.tar.gz
ipxe-99e1207a4d20da21b0953c7953122d2b59ba375a.tar.xz
ipxe-99e1207a4d20da21b0953c7953122d2b59ba375a.zip
[w89c840] Avoid potential array overrun
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/drivers/net')
-rw-r--r--src/drivers/net/w89c840.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/w89c840.c b/src/drivers/net/w89c840.c
index d8144a8c..72ccf3a2 100644
--- a/src/drivers/net/w89c840.c
+++ b/src/drivers/net/w89c840.c
@@ -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 */