Re: [RFC] kvargs: don't pass parse handler a NULL pointer

2023-10-31 Thread fengchengwen
There are a few only-key situation which use rte_kvargs_process to process, If we make this change, the above case will fail. Actually I locally make similar change plus a new API (rte_kvargs_process_opt), this new API will cover key/value and only-key match, while rte_kvargs_process make restr

[RFC] kvargs: don't pass parse handler a NULL pointer

2023-10-31 Thread Stephen Hemminger
There is class of problems in current DPDK where rte_kvargs is used a key/value pair is passed without an associated value. Currently, this can cause a NULL dereference in the rte_kvargs_process handler. Reported-by: Chengwen Feng Signed-off-by: Stephen Hemminger --- lib/kvargs/rte_kvargs.c | 3