Re: [PATCH v4 9/9] app/test-pmd: avoid potential outside of array reference

2024-11-21 Thread fengchengwen
Acked-by: Chengwen Feng On 2024/11/22 2:23, 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 > C

[PATCH v4 9/9] app/test-pmd: avoid potential outside of array reference

2024-11-21 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 Acked-by: Bruce Richardson ---