examples/exception_path: fix out-of-bounds read
authorBruce Richardson <bruce.richardson@intel.com>
Mon, 16 Jul 2018 16:03:47 +0000 (17:03 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 26 Jul 2018 17:53:56 +0000 (19:53 +0200)
commit4341adf272144689540a8e0f615f12eef7e21109
tree0d9843028f1a5c95d63ae79c47dc023f1f311370
parent2e9bf3a12aaad73294f50bd43420ab62588333f3
examples/exception_path: fix out-of-bounds read

When printing out stats from the exception_path app, all possible
lcore_ids are iterated. However, the app only supports up to 64 cores.
To prevent possible errors, and to remove coverity warnings,
explicitly check for out-of-range lcore ids before printing.

Coverity issue: 268335
Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
examples/exception_path/main.c