|SUCCESS| [v2] argparse: fix null dereference in corelist parsing
dpdklab at iol.unh.edu
dpdklab at iol.unh.edu
Tue Nov 17 09:47:04 CET 2026
Test-Label: ai-code-review
Test-Status: SUCCESS
https://dpdk.org/patch/172944
_AI Code Review_
=== Patch Review: series.patch (via Claude) ===
Review date: 2026-11-17
No correctness or guideline issues found in this patch.
Info
lib/argparse/rte_argparse.c, parse_arg_corelist(): the new early return does not log anything.
if (arg->val_set == NULL)
return -EINVAL;
When a user passes a corelist option with no value and no default is configured, parsing fails silently. A log line would make the cause clear. For example:
if (arg->val_set == NULL) {
ARGPARSE_LOG(ERR, "argument %s has no value and no default corelist!",
arg->name_long);
return -EINVAL;
}
Review-Result: CLEAN
More information about the test-report
mailing list