From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 1B4F9201; Sun, 4 Nov 2018 22:01:04 +0100 (CET) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A697821C4F; Sun, 4 Nov 2018 16:01:03 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sun, 04 Nov 2018 16:01:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=mesmtp; bh=ZBMDws8HSQ3doYttQ3m122DtdTOulQYMwtgLU74kHOQ=; b=lpak/GRekgBo ogO4JvqSo0/5GciQBuG2oQ4lIOXDH/gTDUV1ZJm1PjHfK0Iq/KkNdl2ty9T0gzhC NOHks4l4hEiADKpSonQP743CkAPzpzUkHRQUhl4YaF0vuIP9stP0U/Sgx87JpJvC MhmOYmMEYkHkAmmGyd8W6iwuBQrscB8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=ZBMDws8HSQ3doYttQ3m122DtdTOulQYMwtgLU74kH OQ=; b=ShCNoyhdZfRyg1Re0tJwCxY1kJzW5qqW3H+nCj9A3BMcc0plKMOMarjzI 0CQBz9S3qYBd4sMkXvnxKy79bhBjpbhsQzZHyx4xG7RTcS4uO75Z7wRJT75gVeVm lXqou2GA7gO9/LWHgisRd+nSgEjm5Gu4FtICuUc3jpYdKrnaze7PvtuJZi2Xt3Dh NqqYUgntcccKH4IU+SmkiSBrYS/aptm+Qi1GzOn804xj21PaJ2PvhwXI9xjmocCU vPue4EqUbIgTt4OO4sfURSJL2odEFsXzFU5zrzT3XggAaTHCPoXWZrTfdPs6thDc B86STopxmIOAYmziSwUzm+ciHm5jA== X-ME-Sender: X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id AAB2FE40E6; Sun, 4 Nov 2018 16:01:01 -0500 (EST) From: Thomas Monjalon To: Jerin Jacob Cc: dev@dpdk.org, Fan Zhang , "ferruh.yigit@intel.com" , "Jacob, Jerin" , "stable@dpdk.org" Date: Sun, 04 Nov 2018 22:01:00 +0100 Message-ID: <1884211.o4Xx1SxZqB@xps> In-Reply-To: <20181103145828.24564-1-jerin.jacob@caviumnetworks.com> References: <20181103145828.24564-1-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] crypto/scheduler: fix build with gcc 8.2 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: Sun, 04 Nov 2018 21:01:04 -0000 03/11/2018 15:58, Jerin Jacob: > build_error: >=20 > drivers/crypto/scheduler/scheduler_pmd.c: In function =E2=80=98parse_name= _arg=E2=80=99: > drivers/crypto/scheduler/scheduler_pmd.c:372:2: error: =E2=80=98strncpy= =E2=80=99 > specified bound 64 equals destination size [-Werror=3Dstringop-truncation] > strncpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN); > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > strncpy may result a not null-terminated string, > replaced it with strlcpy >=20 > Fixes: 503e9c5afb38 ("crypto/scheduler: register as vdev driver") > Cc: stable@dpdk.org >=20 > Signed-off-by: Jerin Jacob Applied, thanks