[dpdk-dev] [PATCH 3/5] example_ip_pipeline: fix sizeof() on memcpy

2015-09-09 Thread Dumitrescu, Cristian
> -Original Message- > From: Stephen Hemminger [mailto:stephen at networkplumber.org] > Sent: Tuesday, September 1, 2015 4:59 AM > To: Dumitrescu, Cristian > Cc: dev at dpdk.org; Stephen Hemminger > Subject: [PATCH 3/5] example_ip_pipeline: fix sizeof() on memcpy > > Found by Coverity: >

[dpdk-dev] [PATCH 3/5] example_ip_pipeline: fix sizeof() on memcpy

2015-09-09 Thread Stephen Hemminger
On Wed, 9 Sep 2015 18:25:53 + "Dumitrescu, Cristian" wrote: > > diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c > > index 3f9c68d..75e3767 100644 > > --- a/examples/ip_pipeline/init.c > > +++ b/examples/ip_pipeline/init.c > > @@ -1325,7 +1325,7 @@ app_pipeline_type_cmd_

[dpdk-dev] [PATCH 3/5] example_ip_pipeline: fix sizeof() on memcpy

2015-08-31 Thread Stephen Hemminger
Found by Coverity: Sizeof not portable (SIZEOF_MISMATCH) suspicious_sizeof: Passing argument &app->cmds[app->n_cmds] of type cmdline_parse_ctx_t * and argument n_cmds * 8UL /* sizeof (cmdline_parse_ctx_t *) */ to function memcpy is suspicious. In this case, sizeof (cmdline_parse_ctx_t *