From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 313FA475D for ; Thu, 28 Apr 2016 12:55:08 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 28 Apr 2016 03:55:04 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,546,1455004800"; d="scan'208";a="968316800" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga002.fm.intel.com with ESMTP; 28 Apr 2016 03:54:14 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.238]) by IRSMSX151.ger.corp.intel.com ([169.254.4.72]) with mapi id 14.03.0248.002; Thu, 28 Apr 2016 11:54:12 +0100 From: "Dumitrescu, Cristian" To: "Mrozowicz, SlawomirX" CC: "dev@dpdk.org" Thread-Topic: [PATCH] examples: fix CID 30704 negative loop bound Thread-Index: AQHRlj6Va7AjLy4ghkSWktrGhRX6yZ+fTA+w Date: Thu, 28 Apr 2016 10:54:12 +0000 Message-ID: <3EB4FA525960D640B5BDFFD6A3D89126479A6E54@IRSMSX108.ger.corp.intel.com> References: <1460632549-20942-1-git-send-email-slawomirx.mrozowicz@intel.com> In-Reply-To: <1460632549-20942-1-git-send-email-slawomirx.mrozowicz@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiM2VlODBhM2YtYzQ5NS00M2QxLWE4NjgtMjZiNGFhNTk2M2Y0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkNcL0pRSUdtM2hudTB5VitmeUhOeEFUNEF0U2JVZnNWWUxHVFVFbXdaYitBPSJ9 x-ctpclassification: CTP_IC x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] examples: fix CID 30704 negative loop bound X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2016 10:55:08 -0000 > -----Original Message----- > From: Mrozowicz, SlawomirX > Sent: Thursday, April 14, 2016 12:16 PM > To: Dumitrescu, Cristian > Cc: dev@dpdk.org; Mrozowicz, SlawomirX > > Subject: [PATCH] examples: fix CID 30704 negative loop bound >=20 > Fixes: de3cfa2c9823 ("sched: initial import") > Signed-off-by: Slawomir Mrozowicz > --- > examples/qos_sched/args.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c > index 3e7fd08..7a98e5c 100644 > --- a/examples/qos_sched/args.c > +++ b/examples/qos_sched/args.c > @@ -162,7 +162,7 @@ static int > app_parse_opt_vals(const char *conf_str, char separator, uint32_t n_vals= , > uint32_t *opt_vals) > { > char *string; > - uint32_t i, n_tokens; > + int i, n_tokens; > char *tokens[MAX_OPT_VALUES]; >=20 > if (conf_str =3D=3D NULL || opt_vals =3D=3D NULL || n_vals =3D=3D 0 || = n_vals > > MAX_OPT_VALUES) > -- > 1.9.1 Acked-by: Cristian Dumitrescu