On 10/7/2025 9:48 AM, Youssef Samir wrote:
From: Zack McKevitt <[email protected]>
Use check_add_overflow instead of size_add in sahara when
64b types are being added to ensure compatibility with 32b
systems. The size_add function parameters are of size_t, so
64b data types may be truncated when cast to size_t on 32b
systems. When using check_add_overflow, no type casts are made,
making it a more portable option.
Signed-off-by: Zack McKevitt <[email protected]>
Signed-off-by: Youssef Samir <[email protected]>
Reviewed-by: Jeff Hugo <[email protected]>