[PATCH v5 06/22] cmdline: fix highest bit port list parsing
fengchengwen
fengchengwen at huawei.com
Wed Aug 13 03:10:21 CEST 2025
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
On 7/23/2025 9:31 PM, David Marchand wrote:
> 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: af75078fece3 ("first public release")
> Cc: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>
> Reviewed-by: Marat Khalili <marat.khalili at huawei.com>
More information about the dev
mailing list