[PATCH] app: fix gcc 12 array bounds warning

David Marchand david.marchand at redhat.com
Thu Jun 16 15:16:38 CEST 2022


On Thu, Jun 16, 2022 at 12:40 PM <wenxuanx.wu at intel.com> wrote:
>
> From: Wenxuan Wu <wenxuanx.wu at intel.com>
>
> 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: stable at dpdk.org
> Signed-off-by: Wenxuan Wu <wenxuanx.wu at intel.com>

A different fix is already merged.
Please check: https://git.dpdk.org/dpdk/commit/?id=5fc2eece8d45


-- 
David Marchand



More information about the stable mailing list