numam-dpdk/drivers/net/nfp
Andy Green 1bcb5ecb17 net/nfp: fix memcpy out of source range
drivers/net/nfp/nfp_net.c:669:2: error:
‘memcpy’ forming offset [5, 6] is out of the bounds [0, 4]
of object ‘tmp’ with type ‘uint32_t’ {aka ‘unsigned int’}
[-Werror=array-bounds]
memcpy(&hw->mac_addr[0], &tmp, sizeof(struct ether_addr));

Fixes: e6decee382 ("net/nfp: use random MAC address if not configured")
Cc: stable@dpdk.org

Signed-off-by: Andy Green <andy@warmcat.com>
Acked-by: Alejandro Lucero <alejandro.lucero@netronome.com>
Tested-by: Alejandro Lucero <alejandro.lucero@netronome.com>
2018-05-14 23:32:23 +02:00
..
nfpcore net/nfp: fix off-by-one and no nul on strncpy use 2018-05-14 23:32:23 +02:00
Makefile net/nfp: use new CPP interface 2018-04-14 00:40:21 +02:00
nfp_net_ctrl.h net/nfp: support MAC address change 2018-04-27 15:54:55 +01:00
nfp_net_logs.h net/nfp: add newline in PMD_RX/TX_LOG macros 2018-04-27 18:00:57 +01:00
nfp_net_pmd.h net/nfp: support LSO offload version 2 2018-04-14 00:43:30 +02:00
nfp_net.c net/nfp: fix memcpy out of source range 2018-05-14 23:32:23 +02:00
rte_pmd_nfp_version.map nfp: introduce driver initialization 2015-12-08 03:00:42 +01:00