RE: [PATCH v2 05/10] cmdline: fix port list parsing

2025-06-26 Thread Marat Khalili
Acked-by: Marat Khalili

Re: [PATCH v2 05/10] cmdline: fix port list parsing

2025-06-23 Thread Bruce Richardson
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:

[PATCH v2 05/10] cmdline: fix port list parsing

2025-06-23 Thread David Marchand
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