examples/ip_pipeline: fix options array overflow

In the function app_init_eal(struct app params * app) number of
entries into array exceeds the size of the array if the conditions
are fulfilled.

Coverity issue: 124567
Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax")

Signed-off-by: Marcin Kerlin <marcinx.kerlin@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Marcin Kerlin 2016-04-14 11:53:47 +02:00 committed by Thomas Monjalon
parent d532ddccce
commit 535b969d31

View File

@ -415,7 +415,7 @@ struct app_eal_params {
#endif
#ifndef APP_EAL_ARGC
#define APP_EAL_ARGC 32
#define APP_EAL_ARGC 64
#endif
#ifndef APP_MAX_PIPELINE_TYPES