Re: [dpdk-dev] [PATCH] hash: fix sprintf with snprintf

2019-02-06 Thread Stephen Hemminger
On Wed, 6 Feb 2019 10:52:17 + Pallantla Poornima wrote: > + snprintf(name, sizeof(name), "test_hash%d_data", > + hashtest_key_lens[table_index]); It looks like %u should be used since hashtest_key_lens is unsigned 32 bit value. Since the values in ta

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

2019-02-06 Thread Pallantla Poornima
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: sta...@dpdk.org Signed-off-by: Pallantla Poornima --- test/test/test_hash_perf.c | 6 -- 1 file changed, 4 insert