Skip to contentSkip to conversation

examples/ip_pipeline: fix out-of-bounds write

PATCH Applied Marcin Kerlin 3 participants 3 messages Apr 14, 2016 – May 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 examples/ip_pipeline: fix out-of-bounds write

CID 124567:
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.

Fixes 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax")
---
 examples/ip_pipeline/app.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/app.h +1 -1
index 55a9841..e775024 100644
@@ -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
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 36 lines

-----Original Message-----
From: Kerlin, MarcinX
Sent: Thursday, April 14, 2016 10:54 AM
To: [email protected]
Cc: Dumitrescu, Cristian <[email protected]>; Kerlin, MarcinX <[email protected]>
Subject: [PATCH] examples/ip_pipeline: fix out-of-bounds write

CID 124567:
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.

Fixes 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax")
---
 examples/ip_pipeline/app.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/app.h +1 -2
index 55a9841..e775024 100644
@@ -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
--
Quoted 1 line

1.9.1