numam-dpdk/drivers/net/e1000
Yong Wang 671f877687 net/igb: fix memcpy length
The size of "flex_filter.filter_info.mask" and "filter->mask" are 16
bytes, but the length of memcpy--"RTE_ALIGN(filter->len, sizeof(char))
/ sizeof(char)" may reach 128 bytes which may cause array access out
of bound.

Fix it by replacing "sizeof(char)" by "CHAR_BIT".

Fixes: 231d43909a ("igb: migrate flex filter to new API")
Cc: stable@dpdk.org

Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2017-10-06 02:49:48 +02:00
..
base net/e1000/base: fix multicast setting in VF 2017-04-04 15:52:50 +02:00
e1000_ethdev.h net/e1000: include PCI header directly 2017-07-09 00:03:09 +02:00
e1000_logs.h
em_ethdev.c ethdev: add return values to callback process API 2017-07-01 17:19:55 +02:00
em_rxtx.c net/e1000: implement descriptor status API 2017-03-30 15:27:42 +02:00
igb_ethdev.c net/igb: fix memcpy length 2017-10-06 02:49:48 +02:00
igb_flow.c net/igb: remove unnecessary void casts 2017-10-06 02:49:48 +02:00
igb_pf.c drivers/net: add generic ethdev macro to get PCI device 2017-06-12 10:41:25 +01:00
igb_regs.h
igb_rxtx.c net/igb: fix checksum valid flags 2017-06-12 10:41:27 +01:00
Makefile net/igb: parse flow API n-tuple filter 2017-06-12 11:38:45 +01:00
rte_pmd_e1000_version.map