app/pdump: abort on multi-core capture limit
authorReshma Pattan <reshma.pattan@intel.com>
Mon, 28 Feb 2022 09:58:56 +0000 (09:58 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 7 Mar 2022 23:00:21 +0000 (00:00 +0100)
commit3ee04ebc91f3872c4c1d9f9911f0cdfa32377d8c
treecca9b2bbeee30a15948829e9c10079c6efba228a
parent2479a1e9a8886c93ba4c8a7aa2a35a04302f1aae
app/pdump: abort on multi-core capture limit

Check lcore id value is not the maximum core supported.
Using lcore id without this check might cause
out of bound access inside the rte_eal_wait_lcore.

Coverity issue: 375841
Fixes: b2854d5317e8 ("app/pdump: support multi-core capture")
Cc: stable@dpdk.org
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
app/pdump/main.c