From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id CDCF31D90; Thu, 12 Oct 2017 10:03:49 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 12 Oct 2017 01:03:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.43,365,1503385200"; d="scan'208";a="145618302" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by orsmga002.jf.intel.com with ESMTP; 12 Oct 2017 01:03:43 -0700 Received: from irsmsx108.ger.corp.intel.com ([169.254.11.167]) by IRSMSX151.ger.corp.intel.com ([169.254.4.108]) with mapi id 14.03.0319.002; Thu, 12 Oct 2017 09:03:43 +0100 From: "De Lara Guarch, Pablo" To: Tomasz Duszynski , "dev@dpdk.org" CC: "stable@dpdk.org" Thread-Topic: [dpdk-stable] [PATCH v2] crypto: use snprintf return value correctly Thread-Index: AQHTQoDdrxK/td70jEar/Xmr2G7D2KLf14rg Date: Thu, 12 Oct 2017 08:03:42 +0000 Message-ID: References: <1507713940-12268-1-git-send-email-tdu@semihalf.com> <1507719907-16418-1-git-send-email-tdu@semihalf.com> In-Reply-To: <1507719907-16418-1-git-send-email-tdu@semihalf.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGVmODdiZGItOGQ1Yy00NDNlLWIyN2UtM2Q2ODA0YWQ0NTMxIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6ImV5VHVnU3FvaWFtWVJXcGtyczVsOVwvZWY3UGhSZ0VwNVFrTmZ5WENCN1BNPSJ9 x-ctpclassification: CTP_IC 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] [dpdk-stable] [PATCH v2] crypto: use snprintf return value correctly 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: Thu, 12 Oct 2017 08:03:50 -0000 > -----Original Message----- > From: stable [mailto:stable-bounces@dpdk.org] On Behalf Of Tomasz > Duszynski > Sent: Wednesday, October 11, 2017 12:05 PM > To: dev@dpdk.org > Cc: Tomasz Duszynski ; stable@dpdk.org > Subject: [dpdk-stable] [PATCH v2] crypto: use snprintf return value corre= ctly >=20 > snprintf return value is the length of was encoded into destination array > excluding '\0'. Thus return value equal to the length of the destination = array > or more means truncation. >=20 > This commit fixes improper use of the return value. >=20 > Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto > operations") > Fixes: 924e84f87306 ("aesni_mb: add driver for multi buffer based crypto"= ) > Fixes: 0f548b50a160 ("crypto/aesni_mb: process crypto op on dequeue") > Fixes: 169ca3db550c ("crypto/armv8: add PMD optimized for ARMv8 > processors") > Fixes: 2773c86d061a ("crypto/kasumi: add driver for KASUMI library") > Fixes: 94b0ad8e0aa5 ("null_crypto: add driver for null crypto operations"= ) > Fixes: d61f70b4c918 ("crypto/libcrypto: add driver for OpenSSL library") > Fixes: 3aafc423cf4d ("snow3g: add driver for SNOW 3G library") > Fixes: cf7685d68f00 ("crypto/zuc: add driver for ZUC library") > Cc: stable@dpdk.org >=20 > Signed-off-by: Tomasz Duszynski > Acked-by: Bruce Richardson Applied to dpdk-next-crypto. Thanks, Pablo