test/hash: replace sprintf with snprintf
authorPallantla Poornima <pallantlax.poornima@intel.com>
Tue, 26 Mar 2019 10:27:23 +0000 (10:27 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 5 Apr 2019 08:40:56 +0000 (10:40 +0200)
commit8766e2a4782aecb6d474697617055e281149cc02
tree3747a3311ceb63ce12dccb4b14ce0a09fad4d972
parent7ab0770233ed5bb89845abf6b978ef15b2520bd8
test/hash: replace sprintf with snprintf

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

Fixes: 473d1bebce ("hash: allow to store data in hash table")
Cc: stable@dpdk.org
Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com>
Acked-by: Yipeng Wang <yipeng1.wang@intel.com>
app/test/test_hash_perf.c