Re: [dpdk-dev] [PATCH] kvargs: fix a heap-buffer-overflow when detect list

2020-03-25 Thread Olivier Matz
Hi, On Thu, Mar 19, 2020 at 12:38:00PM +0800, wangyunjian wrote: > From: Yunjian Wang > > When an input params'value is '[', leading to the 'str' over read > or heap-buffer-overflow. So we can check the 'ctx1' length to avoid > this problem. > > Fixes: cc0579f2339a ("kvargs: support list value"

[dpdk-dev] [PATCH] kvargs: fix a heap-buffer-overflow when detect list

2020-03-18 Thread wangyunjian
From: Yunjian Wang When an input params'value is '[', leading to the 'str' over read or heap-buffer-overflow. So we can check the 'ctx1' length to avoid this problem. Fixes: cc0579f2339a ("kvargs: support list value") Cc: sta...@dpdk.org Signed-off-by: Yunjian Wang --- lib/librte_kvargs/rte_k