[dpdk-dev] [PATCH] vhost: fix sprintf with snprintf

Maxime Coquelin maxime.coquelin at redhat.com
Mon Feb 4 10:32:16 CET 2019



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 at dpdk.org
> 
> Signed-off-by: Pallantla Poornima <pallantlax.poornima at intel.com>
> ---
>   lib/librte_vhost/vdpa.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 

Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>

Thanks,
Maxime


More information about the dev mailing list