Re: [PATCH] app: fix gcc 12 array bounds warning

2022-06-16 Thread David Marchand
On Thu, Jun 16, 2022 at 12:40 PM wrote: > > From: Wenxuan Wu > > when n == 1000, and it would overflow the array size of 4 bytes with > nul terminator. Change the logic to avoid this warning. > > Fixes: 15c431864000 ("app/flow-perf: add packet forwarding support") > Cc: sta...@dpdk.org > Signed-o

[PATCH] app: fix gcc 12 array bounds warning

2022-06-16 Thread wenxuanx . wu
From: Wenxuan Wu when n == 1000, and it would overflow the array size of 4 bytes with nul terminator. Change the logic to avoid this warning. Fixes: 15c431864000 ("app/flow-perf: add packet forwarding support") Cc: sta...@dpdk.org Signed-off-by: Wenxuan Wu --- app/test-flow-perf/main.c | 2 +-

[PATCH] app: fix gcc 12 array bounds warning

2022-06-16 Thread wenxuanx . wu
From: Wenxuan Wu when n == 1000, and it would be overflow the array size of 4 bytes with nul terminator. Change the logic to avoid this warning. Fixes: 15c431864000 ("app/flow-perf: add packet forwarding support") Cc: sta...@dpdk.org Signed-off-by: Wenxuan Wu --- app/test-flow-perf/main.c | 2