From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 762DD1B40C; Tue, 30 Jan 2018 13:18:00 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jan 2018 04:17:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,434,1511856000"; d="scan'208";a="25871347" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by fmsmga004.fm.intel.com with ESMTP; 30 Jan 2018 04:17:59 -0800 Received: from irsmsx156.ger.corp.intel.com (10.108.20.68) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 30 Jan 2018 12:17:58 +0000 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.188]) by IRSMSX156.ger.corp.intel.com ([169.254.3.153]) with mapi id 14.03.0319.002; Tue, 30 Jan 2018 12:17:58 +0000 From: "Zhang, Roy Fan" To: "De Lara Guarch, Pablo" CC: "dev@dpdk.org" , "Richardson, Bruce" , "stable@dpdk.org" Thread-Topic: [PATCH v2] crypto/scheduler: fix strncpy Thread-Index: AQHTmOKsW7MVU1zuo0GeYS3TPMHDVaOMVrQw Date: Tue, 30 Jan 2018 12:17:57 +0000 Message-ID: <9F7182E3F746AB4EA17801C148F3C604330AC4E9@IRSMSX101.ger.corp.intel.com> References: <20180126144428.13154-1-pablo.de.lara.guarch@intel.com> <20180129092202.45914-1-pablo.de.lara.guarch@intel.com> In-Reply-To: <20180129092202.45914-1-pablo.de.lara.guarch@intel.com> Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMTdhNzI3ZmQtODg1Ni00OTdlLWE4NmMtZDA5Mzc4NTQwMDU1IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImR6VmtKZDZFNzhENHFxczBqRnpLUVpuc0RsM1h3cGN4UVFvdzlcL2lwZkRvPSJ9 dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] crypto/scheduler: fix strncpy X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2018 12:18:01 -0000 > -----Original Message----- > From: De Lara Guarch, Pablo > Sent: Monday, January 29, 2018 9:22 AM > To: Zhang, Roy Fan > Cc: dev@dpdk.org; Richardson, Bruce ; De > Lara Guarch, Pablo ; stable@dpdk.org > Subject: [PATCH v2] crypto/scheduler: fix strncpy >=20 > The coverity issue was not completely fixed, since strncpy should not be > called with max length. > Instead, snprintf is used as a safer option. >=20 > Coverity issue: 143431 > Fixes: d040aca67170 ("crypto/scheduler: fix strings not null terminated") > Cc: stable@dpdk.org >=20 > Signed-off-by: Pablo de Lara > --- >=20 > v2: > - Replaced strncpy with snprintf =20 Acked-by: Fan Zhang