[dpdk-stable] [dpdk-dev] [PATCH] hash: fix sprintf with snprintf
Stephen Hemminger
stephen at networkplumber.org
Wed Feb 6 17:18:16 CET 2019
On Wed, 6 Feb 2019 10:52:17 +0000
Pallantla Poornima <pallantlax.poornima at intel.com> 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 table are always small enough, I don't see why
this should go to stable.
More information about the stable
mailing list