> -----Original Message-----
> From: dev [mailto:[email protected]] On Behalf Of Andy Green
> Sent: Friday, May 11, 2018 2:46 AM
> To: [email protected]
> Subject: [dpdk-dev] [PATCH v4 08/18] net/nfp: don't memcpy out of source
> range
>
> /home/agreen/projects/dpdk/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));
>
> Signed-off-by: Andy Green <[email protected]>
> Acked-by: Alejandro Lucero <[email protected]>
> Tested-by: Alejandro Lucero <[email protected]>
Missing fixes line and CC stable.
Fixes: e6decee38209 ("net/nfp: use random MAC address if not configured")