net/softnic: fix possible buffer overflow
authorPallantla Poornima <pallantlax.poornima@intel.com>
Mon, 4 Feb 2019 07:23:48 +0000 (07:23 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 1 Mar 2019 17:17:36 +0000 (18:17 +0100)
commitfef6b216390f33c066ea15e9de7845dfc3ab6d6a
tree0cb2e666b48af501b6ab090cf5ac5c13dbbd3607
parent6416a618436a843c3e57882bb06e42cf0a370d1c
net/softnic: fix possible buffer overflow

sprintf function is not secure as it doesn't check the length of string.
More secure function snprintf is used.

Fixes: daabf2fb949b ("net/softnic: map flow action to table action")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/softnic/rte_eth_softnic_flow.c