From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH] vhost: fix sprintf with snprintf Date: Mon, 4 Feb 2019 10:32:16 +0100 Message-ID: <5c1f6711-5094-6d45-2e73-76dbce406959@redhat.com> References: <1549265286-6217-1-git-send-email-pallantlax.poornima@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: reshma.pattan@intel.com, tiwei.bie@intel.com, zhihong.wang@intel.com, stable@dpdk.org To: Pallantla Poornima , dev@dpdk.org Return-path: In-Reply-To: <1549265286-6217-1-git-send-email-pallantlax.poornima@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 2/4/19 8:28 AM, Pallantla Poornima wrote: > sprintf function is not secure as it doesn't check the length of string. > More secure function snprintf is used. > > Fixes: d7280c9fff ("vhost: support selective datapath") > Cc: stable@dpdk.org > > Signed-off-by: Pallantla Poornima > --- > lib/librte_vhost/vdpa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime