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: [email protected]
>
> Signed-off-by: David Marchand <[email protected]>
> ---
> Changes since v1:
> - moved some variable as suggested by Bruce,
>
Acked-by: Bruce Richardson <[email protected]>
- Re: [PATCH v2 02/10] test/telemetry: fix test ... David Marchand
- RE: [PATCH v2 02/10] test/telemetry: fix t... Marat Khalili
- Re: [PATCH v2 02/10] test/telemetry: f... David Marchand
- RE: [PATCH v2 02/10] test/telemet... Marat Khalili
- [PATCH v2 03/10] test/mempool: fix test without stack d... David Marchand
- RE: [PATCH v2 03/10] test/mempool: fix test withou... Marat Khalili
- [PATCH v2 04/10] eal: fix plugin dir walk David Marchand
- RE: [PATCH v2 04/10] eal: fix plugin dir walk Marat Khalili
- Re: [PATCH v2 04/10] eal: fix plugin dir walk David Marchand
- [PATCH v2 05/10] cmdline: fix port list parsing David Marchand
- Re: [PATCH v2 05/10] cmdline: fix port list parsin... Bruce Richardson
- RE: [PATCH v2 05/10] cmdline: fix port list parsin... Marat Khalili
- [PATCH v2 06/10] cmdline: fix highest bit port list par... David Marchand
- RE: [PATCH v2 06/10] cmdline: fix highest bit port... Marat Khalili
- [PATCH v2 07/10] tailq: fix cast macro for null pointer David Marchand
- RE: [PATCH v2 07/10] tailq: fix cast macro for nul... Marat Khalili
- Re: [PATCH v2 07/10] tailq: fix cast macro for... David Marchand
- [PATCH v2 08/10] hash: fix unaligned access in predicta... David Marchand
- Re: [PATCH v2 08/10] hash: fix unaligned access in... Bruce Richardson
- RE: [PATCH v2 08/10] hash: fix unaligned access in... Konstantin Ananyev
- Re: [PATCH v2 08/10] hash: fix unaligned acces... David Marchand

