Re: [PATCH v2 09/10] app/test-pmd: avoid potential outside of array reference

2024-11-15 Thread Bruce Richardson
On Thu, Nov 14, 2024 at 11:25:07AM -0800, Stephen Hemminger wrote: > The order of comparison is wrong, and potentially allows > referencing past the array. > > Link: https://pvs-studio.com/en/blog/posts/cpp/1179/ > > Fixes: 3e3edab530a1 ("ethdev: add flow quota") > Cc: getel...@nvidia.com > Cc: s

[PATCH v2 09/10] app/test-pmd: avoid potential outside of array reference

2024-11-14 Thread Stephen Hemminger
The order of comparison is wrong, and potentially allows referencing past the array. Link: https://pvs-studio.com/en/blog/posts/cpp/1179/ Fixes: 3e3edab530a1 ("ethdev: add flow quota") Cc: getel...@nvidia.com Cc: sta...@dpdk.org Signed-off-by: Stephen Hemminger --- app/test-pmd/cmdline_flow.c