Browse Source

[w89c840] Avoid potential array overrun

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 years ago
parent
commit
99e1207a4d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/w89c840.c

+ 1
- 1
src/drivers/net/w89c840.c View File

247
     /* MII transceiver section. */
247
     /* MII transceiver section. */
248
     int mii_cnt;                        /* MII device addresses. */
248
     int mii_cnt;                        /* MII device addresses. */
249
     u16 advertising;                    /* NWay media advertisement */
249
     u16 advertising;                    /* NWay media advertisement */
250
-    unsigned char phys[2];                /* MII device addresses. */
250
+    unsigned char phys[4];                /* MII device addresses. */
251
 } w840private __attribute__ ((aligned (PRIV_ALIGN_BYTES)));
251
 } w840private __attribute__ ((aligned (PRIV_ALIGN_BYTES)));
252
 
252
 
253
 /* NIC specific static variables go here */
253
 /* NIC specific static variables go here */

Loading…
Cancel
Save