numam-dpdk/app/test-crypto-perf
Bruce Richardson 64c469b9e7 app/crypto-perf: check range of socket id
The socket_id is used as an array index so should be within the range
of zero to max numa nodes. Add a range check to ensure we don't get
excessive values.

Coverity issue: 336812
Coverity issue: 336829
Fixes: 2c59bd32b7 ("cryptodev: do not create session mempool internally")
CC: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2019-04-18 16:01:28 +02:00
..
data cryptodev: add auth IV 2017-07-06 22:26:48 +02:00
cperf_ops.c app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_ops.h app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_options_parsing.c app/crypto-perf: support IMIX 2018-01-20 16:10:20 +01:00
cperf_options.h app/crypto-perf: honour min headroom/tailroom 2018-07-11 03:57:24 +02:00
cperf_test_common.c app/crypto-perf: honour min headroom/tailroom 2018-07-11 03:57:24 +02:00
cperf_test_common.h app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cperf_test_latency.c app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_latency.h app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_pmd_cyclecount.c app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_pmd_cyclecount.h app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_throughput.c app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_throughput.h app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_vector_parsing.c build/freebsd: rename macro BSDPAPP to FREEBSD 2019-03-12 23:01:14 +01:00
cperf_test_vector_parsing.h app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cperf_test_vectors.c app/test-crypto-perf: fix double allocation of memory 2018-09-25 17:57:25 +02:00
cperf_test_vectors.h app: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
cperf_test_verify.c app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf_test_verify.h app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
cperf.h app/crypto-perf: use separate session mempools 2019-01-10 16:57:22 +01:00
main.c app/crypto-perf: check range of socket id 2019-04-18 16:01:28 +02:00
Makefile app/crypto-perf: compile with -O3 2018-07-24 01:48:10 +02:00
meson.build build: add dependency on telemetry to apps with meson 2018-10-27 15:21:33 +02:00