[PATCH v5 18/22] net: fix IPv4 macro with highest bit
fengchengwen
fengchengwen at huawei.com
Wed Aug 13 04:28:30 CEST 2025
Acked-by: Chengwen Feng <fengchengwen at huawei.com>
On 7/23/2025 9:31 PM, David Marchand wrote:
> Without an explicit type, all parameters of this macro are considered as
> a signed integer.
>
> ../app/test/test_fib.c:270:20: runtime error: left shift of
> 128 by 24 places cannot be represented in type 'int'
> SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior
> ../app/test/test_fib.c:270:20 in
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Acked-by: Konstantin Ananyev <konstantin.ananyev at huawei.com>
More information about the dev
mailing list