Re: [dpdk-dev] [PATCH v2] bonding: fix overflow check

2021-04-30 Thread Ferruh Yigit
On 4/30/2021 3:54 AM, Min Hu (Connor) wrote: > > > 在 2021/4/29 21:33, Ferruh Yigit 写道: >> On 4/27/2021 2:40 AM, Min Hu (Connor) wrote: >>> Buffer 'test_params->slave_port_ids' of size 6 accessed may >>> overflow, since its index 'i' can have value be is out of range. >>> >>> This patch fixed it.

Re: [dpdk-dev] [PATCH v2] bonding: fix overflow check

2021-04-29 Thread Min Hu (Connor)
在 2021/4/29 21:33, Ferruh Yigit 写道: On 4/27/2021 2:40 AM, Min Hu (Connor) wrote: Buffer 'test_params->slave_port_ids' of size 6 accessed may overflow, since its index 'i' can have value be is out of range. This patch fixed it. Fixes: 92073ef961ee ("bond: unit tests") Cc: sta...@dpdk.org Si

Re: [dpdk-dev] [PATCH v2] bonding: fix overflow check

2021-04-29 Thread Ferruh Yigit
On 4/27/2021 2:40 AM, Min Hu (Connor) wrote: > Buffer 'test_params->slave_port_ids' of size 6 accessed may > overflow, since its index 'i' can have value be is out of range. > > This patch fixed it. > > Fixes: 92073ef961ee ("bond: unit tests") > Cc: sta...@dpdk.org > > Signed-off-by: Min Hu (Con

[dpdk-dev] [PATCH v2] bonding: fix overflow check

2021-04-26 Thread Min Hu (Connor)
Buffer 'test_params->slave_port_ids' of size 6 accessed may overflow, since its index 'i' can have value be is out of range. This patch fixed it. Fixes: 92073ef961ee ("bond: unit tests") Cc: sta...@dpdk.org Signed-off-by: Min Hu (Connor) --- v2: * fix bonded_slave_count value. --- app/test/tes