RE: [PATCH v2 06/10] cmdline: fix highest bit port list parsing

2025-06-30 Thread Marat Khalili
> -Original Message- > From: David Marchand > Sent: Monday 23 June 2025 14:53 > To: dev@dpdk.org > Cc: sta...@dpdk.org; Bruce Richardson > Subject: [PATCH v2 06/10] cmdline: fix highest bit port list parsing > > pl->map is a uint32_t. > > Cau

[PATCH v2 06/10] cmdline: fix highest bit port list parsing

2025-06-23 Thread David Marchand
pl->map is a uint32_t. Caught by UBSan: ../lib/cmdline/cmdline_parse_portlist.c:27:17: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior ../lib/cmdline/cmdline_parse_portlist.c:27:17 in Fixes: a