examples/ip_pipeline: fix buffer not null terminated.
PATCH 1/1 examples/ip_pipeline: fix buffer not null terminated.
Coverity issue: 272563
Fixes 8245472c58c8 ("examples/ip_pipeline: add sw queue object")
Signed-off-by Fan Zhang <[email protected]>
--- examples/ip_pipeline/swq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
examples/ip_pipeline/swq.c +1 -1
@@ -64,7 +64,7 @@ swq_create(const char *name, struct swq_params *params) }/* Node fill in */ -strncpy (swq->name, name,sizeof (swq->name)); +strncpy (swq->name, name,sizeof (swq->name) -1 ); swq->r = r;/* Node add to list */
Signature · 1 line
2.13.6
Quoted 31 lines
-----Original Message-----
From: Zhang, Roy Fan
Sent: Monday, April 16, 2018 11:26 AM
To: [email protected]
Cc: Dumitrescu, Cristian <[email protected]>; Singh, Jasvinder <[email protected]>
Subject: [PATCH] examples/ip_pipeline: fix buffer not null terminated.Coverity issue: 272563
Fixes 8245472c58c8 ("examples/ip_pipeline: add sw queue object")Signed-off-by Fan Zhang <[email protected]>--- examples/ip_pipeline/swq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)examples/ip_pipeline/swq.c +1
-1@@ -64,7 +64,7 @@ swq_create(const char *name, struct swq_params *params) }/* Node fill in */ -strncpy (swq->name, name,sizeof (swq->name)); +strncpy (swq->name, name,sizeof (swq->name) -1 ); swq->r = r;
Quoted 3 lines
/* Node add to list */
--
2.13.6
Applied to next-pipeline tree, thanks!