Re: [dpdk-dev] [PATCH] devargs: fix devargs truncation when format string is used

2018-07-20 Thread Thomas Monjalon
18/07/2018 10:42, Gaëtan Rivet: > Hi, > > On Wed, Jul 18, 2018 at 08:23:30AM +0100, Andrew Rybchenko wrote: > > Space for string terminating NUL character should be provided to > > snprintf() to avoid the last symbol truncation. > > > > Fixes: a23bc2c4e01b ("devargs: add non-variadic parsing func

Re: [dpdk-dev] [PATCH] devargs: fix devargs truncation when format string is used

2018-07-18 Thread Gaëtan Rivet
Hi, On Wed, Jul 18, 2018 at 08:23:30AM +0100, Andrew Rybchenko wrote: > Space for string terminating NUL character should be provided to > snprintf() to avoid the last symbol truncation. > > Fixes: a23bc2c4e01b ("devargs: add non-variadic parsing function") > > Reported-by: Ivan Malov > Signed-

[dpdk-dev] [PATCH] devargs: fix devargs truncation when format string is used

2018-07-18 Thread Andrew Rybchenko
Space for string terminating NUL character should be provided to snprintf() to avoid the last symbol truncation. Fixes: a23bc2c4e01b ("devargs: add non-variadic parsing function") Reported-by: Ivan Malov Signed-off-by: Andrew Rybchenko --- lib/librte_eal/common/eal_common_devargs.c | 2 +- 1 f