[PATCH v2 05/10] cmdline: fix port list parsing
Bruce Richardson
bruce.richardson at intel.com
Mon Jun 23 16:00:33 CEST 2025
On Mon, Jun 23, 2025 at 03:52:35PM +0200, David Marchand wrote:
> Doing arithmetics with the NULL pointer is undefined.
>
> Caught by UBSan:
>
> ../lib/cmdline/cmdline_parse_portlist.c:40:19: runtime error:
> applying non-zero offset 1 to null pointer
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> ../lib/cmdline/cmdline_parse_portlist.c:40:19 in
>
> Fixes: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> ---
> Changes since v1:
> - moved some variable as suggested by Bruce,
>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
More information about the dev
mailing list