[dpdk-dev] [PATCH] app/test: fix +/-1 error in allocation

2016-05-25 Thread Thomas Monjalon
2016-05-04 10:15, David Marchand: > On Tue, May 3, 2016 at 9:15 PM, Jan Viktorin > wrote: > > A bug has been detected by valgrind: [...] > > strlen(t->command) + strlen("#") + ONE_FOR_ZERO > > > > Fixes: 727909c59231 ("app/test: introduce dynamic commands list") > > > > Signed-off-by: Jan Viktor

[dpdk-dev] [PATCH] app/test: fix +/-1 error in allocation

2016-05-04 Thread David Marchand
On Tue, May 3, 2016 at 9:15 PM, Jan Viktorin wrote: > A bug has been detected by valgrind: > > ==14406== Invalid write of size 1 > ==14406==by 0x86ECC76: sprintf (in /usr/lib/libc-2.23.so) > ==14406==by 0x430B0A: commands_init (in > /home/jviki/Projects/dpdk/dpdk-soc/build/app/test) > ==1

[dpdk-dev] [PATCH] app/test: fix +/-1 error in allocation

2016-05-03 Thread Jan Viktorin
A bug has been detected by valgrind: ==14406== Invalid write of size 1 ==14406==by 0x86ECC76: sprintf (in /usr/lib/libc-2.23.so) ==14406==by 0x430B0A: commands_init (in /home/jviki/Projects/dpdk/dpdk-soc/build/app/test) ==14406==by 0x42F215: main (in /home/jviki/Projects/dpdk/dpdk-so