From: Fan Zhang Date: Fri, 11 Dec 2015 11:29:10 +0000 (+0000) Subject: examples/ip_pipeline: fix buffer overrun X-Git-Tag: spdx-start~7761 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=fa843ff26597f13e49af690ce2d5855de63dc528;p=dpdk.git examples/ip_pipeline: fix buffer overrun Coverity issue: 107127 Fixes: 7f64b9c004aa ("examples/ip_pipeline: rework config file syntax") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu Acked-by: John McNamara --- diff --git a/examples/ip_pipeline/config_parse_tm.c b/examples/ip_pipeline/config_parse_tm.c index 3932247517..e75eed71f6 100644 --- a/examples/ip_pipeline/config_parse_tm.c +++ b/examples/ip_pipeline/config_parse_tm.c @@ -399,7 +399,7 @@ tm_cfgfile_load(struct app_pktq_tm_params *tm) memset(tm->sched_subport_params, 0, sizeof(tm->sched_subport_params)); memset(tm->sched_pipe_profiles, 0, sizeof(tm->sched_pipe_profiles)); - memset(&tm->sched_port_params, 0, sizeof(tm->sched_pipe_profiles)); + memset(&tm->sched_port_params, 0, sizeof(tm->sched_port_params)); for (i = 0; i < APP_MAX_SCHED_SUBPORTS * APP_MAX_SCHED_PIPES; i++) tm->sched_pipe_to_profile[i] = -1;